Package dev.quantumfusion.hyphen.scan
Record Class FieldEntry
java.lang.Object
java.lang.Record
dev.quantumfusion.hyphen.scan.FieldEntry
-
Constructor Summary
ConstructorsConstructorDescriptionFieldEntry(Field field, Clazz clazz)Creates an instance of aFieldEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclazz()Returns the value of theclazzrecord component.static FieldEntrybooleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.Class<?>inthashCode()Returns a hash code value for this object.booleantoString()Returns a string representation of this record class.
-
Constructor Details
-
FieldEntry
Creates an instance of aFieldEntryrecord class.- Parameters:
field- the value for thefieldrecord componentclazz- the value for theclazzrecord component
-
-
Method Details
-
create
-
isNullable
public boolean isNullable() -
getFieldName
-
getFieldType
-
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). -
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
clazz
Returns the value of theclazzrecord component.- Returns:
- the value of the
clazzrecord component
-