Interface FieldSpec
- All Known Implementing Classes:
FieldSpecImpl
@ClassVersion(sourceVersion="$Id: FieldSpec.java 1085 2024-01-05 16:23:28Z tquadrat $")
@API(status=STABLE,
since="0.0.5")
public sealed interface FieldSpec
permits FieldSpecImpl
The specification for a generated field declaration.
- Author:
- Square,Inc.
- Modified by:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: FieldSpec.java 1085 2024-01-05 16:23:28Z tquadrat $
- Since:
- 0.0.5
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.javacomposer.FieldSpec"
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe specification of a builder for an instance of an implementation forFieldSpec -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanhasModifier(Modifier modifier) Checks whether the given modifier was applied to this field.Returns the modifiers for this field.name()Returns the name for this field.Returns a builder that is already initialised with the components that built this field.toString()type()Returns the type of the field.
-
Method Details
-
equals
-
hashCode
int hashCode() -
hasModifier
Checks whether the given modifier was applied to this field.- Parameters:
modifier- The modifier.- Returns:
trueif the given modifier has been applied to this field.
-
modifiers
Returns the modifiers for this field.- Returns:
- The modifiers.
-
name
Returns the name for this field.- Returns:
- The name.
-
toBuilder
Returns a builder that is already initialised with the components that built this field.- Returns:
- The builder.
-
toString
-
type
Returns the type of the field.- Returns:
- The type.
-
