Record Class BasicType
java.lang.Object
java.lang.Record
org.ethelred.kiwiproc.processor.types.BasicType
- All Implemented Interfaces:
KiwiType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisNullablerecord component.booleanisSimple()Returns the value of thepackageNamerecord component.toString()Returns a string representation of this record class.withIsNullable(boolean newValue)
-
Constructor Details
-
BasicType
Creates an instance of aBasicTyperecord class.- Parameters:
packageName- the value for thepackageNamerecord componentclassName- the value for theclassNamerecord componentisNullable- the value for theisNullablerecord 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. -
withIsNullable
- Specified by:
withIsNullablein interfaceKiwiType
-
isSimple
public boolean isSimple() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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. -
isNullable
public boolean isNullable()Returns the value of theisNullablerecord component.- Specified by:
isNullablein interfaceKiwiType- Returns:
- the value of the
isNullablerecord component
-