Record Class CsdlEnumType
java.lang.Object
java.lang.Record
io.skipcheck.tm1.csdl.CsdlEnumType
- Record Components:
name- the type's name, unqualifiedunderlyingType- its underlying integer type (defaultEdm.Int32)flags- whether members combine as bit flagsmembers- its members, in document order (which must be kept)annotations- its annotations
public record CsdlEnumType(String name, String underlyingType, boolean flags, List<CsdlEnumType.Member> members, List<CsdlAnnotation> annotations)
extends Record
An enumeration type, such as
ElementType.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA member of an enumeration. -
Constructor Summary
ConstructorsConstructorDescriptionCsdlEnumType(String name, String underlyingType, boolean flags, List<CsdlEnumType.Member> members, List<CsdlAnnotation> annotations) Validates and copies the components. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.members()Returns the value of themembersrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunderlyingTyperecord component.
-
Constructor Details
-
CsdlEnumType
public CsdlEnumType(String name, String underlyingType, boolean flags, List<CsdlEnumType.Member> members, List<CsdlAnnotation> annotations) Validates and copies the components.
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
name
-
underlyingType
Returns the value of theunderlyingTyperecord component.- Returns:
- the value of the
underlyingTyperecord component
-
flags
-
members
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-