Package com.onec.metadata
Record Class ConstantDescriptor
java.lang.Object
java.lang.Record
com.onec.metadata.ConstantDescriptor
-
Constructor Summary
ConstructorsConstructorDescriptionConstantDescriptor(String logicalName, Class<?> javaClass, Class<?> valueType, String fieldName) Creates an instance of aConstantDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldNamerecord component.final inthashCode()Returns a hash code value for this object.Class<?> Returns the value of thejavaClassrecord component.Returns the value of thelogicalNamerecord component.final StringtoString()Returns a string representation of this record class.Class<?> Returns the value of thevalueTyperecord component.
-
Constructor Details
-
ConstantDescriptor
public ConstantDescriptor(String logicalName, Class<?> javaClass, Class<?> valueType, String fieldName) Creates an instance of aConstantDescriptorrecord class.- Parameters:
logicalName- the value for thelogicalNamerecord componentjavaClass- the value for thejavaClassrecord componentvalueType- the value for thevalueTyperecord componentfieldName- the value for thefieldNamerecord component
-
-
Method Details
-
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). -
logicalName
Returns the value of thelogicalNamerecord component.- Returns:
- the value of the
logicalNamerecord component
-
javaClass
Returns the value of thejavaClassrecord component.- Returns:
- the value of the
javaClassrecord component
-
valueType
Returns the value of thevalueTyperecord component.- Returns:
- the value of the
valueTyperecord component
-
fieldName
Returns the value of thefieldNamerecord component.- Returns:
- the value of the
fieldNamerecord component
-