Record Class CsdlEnumType.Member
java.lang.Object
java.lang.Record
io.skipcheck.tm1.csdl.CsdlEnumType.Member
- Record Components:
name- the member's namevalue- its value, ornullif not given (then its position, for non-flags enums)annotations- its annotations
- Enclosing class:
CsdlEnumType
public static record CsdlEnumType.Member(String name, @Nullable Long value, List<CsdlAnnotation> annotations)
extends Record
A member of an enumeration.
-
Constructor Summary
ConstructorsConstructorDescriptionMember(String name, @Nullable Long value, 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.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.@Nullable Longvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
Member
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
-
value
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-