Record Class TypeUtils
java.lang.Object
java.lang.Record
org.geysermc.databaseutils.processor.util.TypeUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncanonicalName(TypeMirror mirror) com.squareup.javapoet.ClassNamecollectionImplementationFor(TypeMirror returnType) elementFor(CharSequence name) elementFor(Class<?> clazz) Returns the value of theelementUtilsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisAssignable(TypeMirror impl, CharSequence base) booleanisAssignable(TypeMirror impl, Class<?> base) booleanisAssignable(TypeMirror impl, TypeMirror base) booleanisType(CharSequence expected, TypeMirror actual) booleanisType(Class<?> clazz, TypeMirror mirror) booleanisType(TypeMirror expected, TypeMirror actual) booleanisTypeExact(TypeMirror expected, TypeMirror actual) Compared to the normal isType methods this one doesn't erase and doesn't box the typesbooleanisWholeNumberType(TypeMirror mirror) static booleanneedsTypeCodec(Name className) static StringpackageNameFor(String className) static StringpackageNameFor(Name className) toBoxedMirror(TypeMirror mirror) toBoxedTypeElement(TypeMirror mirror) final StringtoString()Returns a string representation of this record class.Returns the value of thetypeUtilsrecord component.unboxType(TypeMirror mirror)
-
Constructor Details
-
TypeUtils
Creates an instance of aTypeUtilsrecord class.- Parameters:
typeUtils- the value for thetypeUtilsrecord componentelementUtils- the value for theelementUtilsrecord component
-
-
Method Details
-
elementFor
-
elementFor
-
toBoxedMirror
-
toBoxedTypeElement
-
isAssignable
-
isAssignable
-
isAssignable
-
canonicalName
-
collectionImplementationFor
-
isType
-
isType
-
isType
-
isTypeExact
Compared to the normal isType methods this one doesn't erase and doesn't box the types -
packageNameFor
-
packageNameFor
-
needsTypeCodec
-
isWholeNumberType
-
unboxType
-
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). -
typeUtils
Returns the value of thetypeUtilsrecord component.- Returns:
- the value of the
typeUtilsrecord component
-
elementUtils
Returns the value of theelementUtilsrecord component.- Returns:
- the value of the
elementUtilsrecord component
-