Record Class ExpectedMetamodel.Attribute
java.lang.Object
java.lang.Record
io.micronaut.data.tck.metamodel.ExpectedMetamodel.Attribute
- Enclosing class:
ExpectedMetamodel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?> Returns the value of theattributeTyperecord component.Returns the value of theconstantNamerecord component.Returns the value of thedeclaringTyperecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldTypesrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Attribute
public Attribute(String constantName, Class<?> attributeType, List<Class<?>> fieldTypes, String declaringType) Creates an instance of aAttributerecord class.- Parameters:
constantName- the value for theconstantNamerecord componentattributeType- the value for theattributeTyperecord componentfieldTypes- the value for thefieldTypesrecord componentdeclaringType- the value for thedeclaringTyperecord component
-
-
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). -
constantName
Returns the value of theconstantNamerecord component.- Returns:
- the value of the
constantNamerecord component
-
attributeType
Returns the value of theattributeTyperecord component.- Returns:
- the value of the
attributeTyperecord component
-
fieldTypes
-
declaringType
Returns the value of thedeclaringTyperecord component.- Returns:
- the value of the
declaringTyperecord component
-