Record Class CsdlAnnotation
java.lang.Object
java.lang.Record
io.skipcheck.tm1.csdl.CsdlAnnotation
- Record Components:
term- the term as written, e.g.Core.Revisionsqualifier- the qualifier, ornullvalue- the value
-
Constructor Summary
ConstructorsConstructorDescriptionCsdlAnnotation(String term, @Nullable String qualifier, CsdlValue value) Validates the components. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static Optional<CsdlAnnotation> find(List<CsdlAnnotation> annotations, String term) The first annotation with this term (ignoring qualifiers), if any.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of thequalifierrecord component.term()Returns the value of thetermrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
CsdlAnnotation
-
-
Method Details
-
find
The first annotation with this term (ignoring qualifiers), if any.- Parameters:
annotations- the annotations to searchterm- the term as written, e.g.Core.Revisions- Returns:
- the first matching annotation, or empty if none has the term
-
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). -
term
-
qualifier
-
value
-