Record Class GroupDefinition
java.lang.Object
java.lang.Record
daomephsta.unpick.constantmappers.datadriven.tree.GroupDefinition
public record GroupDefinition(List<GroupScope> scopes, boolean flags, boolean strict, DataType dataType, @Nullable String name, List<Expression> constants, @Nullable GroupFormat format, @Nullable String docs)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGroupDefinition(List<GroupScope> scopes, boolean flags, boolean strict, DataType dataType, @Nullable String name, List<Expression> constants, @Nullable GroupFormat format, @Nullable String docs) Creates an instance of aGroupDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstantsrecord component.dataType()Returns the value of thedataTyperecord component.@Nullable Stringdocs()Returns the value of thedocsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanflags()Returns the value of theflagsrecord component.@Nullable GroupFormatformat()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.@Nullable Stringname()Returns the value of thenamerecord component.scopes()Returns the value of thescopesrecord component.booleanstrict()Returns the value of thestrictrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GroupDefinition
@Internal public GroupDefinition(List<GroupScope> scopes, boolean flags, boolean strict, DataType dataType, @Nullable @Nullable String name, List<Expression> constants, @Nullable @Nullable GroupFormat format, @Nullable @Nullable String docs) Creates an instance of aGroupDefinitionrecord class.- Parameters:
scopes- the value for thescopesrecord componentflags- the value for theflagsrecord componentstrict- the value for thestrictrecord componentdataType- the value for thedataTyperecord componentname- the value for thenamerecord componentconstants- the value for theconstantsrecord componentformat- the value for theformatrecord componentdocs- the value for thedocsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
scopes
Returns the value of thescopesrecord component.- Returns:
- the value of the
scopesrecord component
-
flags
public boolean flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
strict
public boolean strict()Returns the value of thestrictrecord component.- Returns:
- the value of the
strictrecord component
-
dataType
Returns the value of thedataTyperecord component.- Returns:
- the value of the
dataTyperecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
constants
Returns the value of theconstantsrecord component.- Returns:
- the value of the
constantsrecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
docs
Returns the value of thedocsrecord component.- Returns:
- the value of the
docsrecord component
-