Record Class RecordType
java.lang.Object
java.lang.Record
org.ethelred.kiwiproc.processor.types.RecordType
- All Implemented Interfaces:
KiwiType
-
Constructor Summary
ConstructorsConstructorDescriptionRecordType(String packageName, String className, List<RecordTypeComponent> components) Creates an instance of aRecordTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.Returns the value of thecomponentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisSimple()Returns the value of thepackageNamerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ethelred.kiwiproc.processor.types.KiwiType
isNullable, withIsNullable
-
Constructor Details
-
RecordType
Creates an instance of aRecordTyperecord class.- Parameters:
packageName- the value for thepackageNamerecord componentclassName- the value for theclassNamerecord componentcomponents- the value for thecomponentsrecord component
-
-
Method Details
-
isSimple
public boolean isSimple() -
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). -
packageName
Returns the value of thepackageNamerecord component.- Specified by:
packageNamein interfaceKiwiType- Returns:
- the value of the
packageNamerecord component
-
className
Returns the value of theclassNamerecord component. -
components
Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-