Record Class SM2_AccessNotation
java.lang.Object
java.lang.Record
tripleo.elijah_congenial_durable.model.source2.SM2_AccessNotation
- All Implemented Interfaces:
SM_Node
public record SM2_AccessNotation(LocatableString shortHand, LocatableString category, List<SM2_TypeName> typeNameList)
extends Record
implements SM_Node
-
Constructor Summary
ConstructorsConstructorDescriptionSM2_AccessNotation(LocatableString shortHand, LocatableString category, List<SM2_TypeName> typeNameList) Creates an instance of aSM2_AccessNotationrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of theshortHandrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeNameListrecord component.
-
Constructor Details
-
SM2_AccessNotation
public SM2_AccessNotation(LocatableString shortHand, LocatableString category, List<SM2_TypeName> typeNameList) Creates an instance of aSM2_AccessNotationrecord class.- Parameters:
shortHand- the value for theshortHandrecord componentcategory- the value for thecategoryrecord componenttypeNameList- the value for thetypeNameListrecord component
-
-
Method Details
-
jsonString
- Specified by:
jsonStringin interfaceSM_Node
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
shortHand
Returns the value of theshortHandrecord component.- Returns:
- the value of the
shortHandrecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
typeNameList
Returns the value of thetypeNameListrecord component.- Returns:
- the value of the
typeNameListrecord component
-