Record Class CsdlProperty
java.lang.Object
java.lang.Record
io.skipcheck.tm1.csdl.CsdlProperty
- Record Components:
name- the property's nametype- its typenullable- whether it may be null (Nullable, default true)defaultValue- itsDefaultValue, ornullannotations- its annotations, in document order
public record CsdlProperty(String name, CsdlTypeRef type, boolean nullable, @Nullable String defaultValue, List<CsdlAnnotation> annotations)
extends Record
A structural property of an entity or complex type.
-
Constructor Summary
ConstructorsConstructorDescriptionCsdlProperty(String name, CsdlTypeRef type, boolean nullable, @Nullable String defaultValue, List<CsdlAnnotation> annotations) Validates and copies the components. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.@Nullable StringReturns the value of thedefaultValuerecord 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.booleannullable()Returns the value of thenullablerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
CsdlProperty
public CsdlProperty(String name, CsdlTypeRef type, boolean nullable, @Nullable String defaultValue, 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
-
type
-
nullable
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-