Record Class ValidMeta.Type
java.lang.Object
java.lang.Record
ru.tinkoff.kora.validation.annotation.processor.ValidMeta.Type
- Enclosing class:
- ValidMeta
public static record ValidMeta.Type(String packageName, String simpleName, List<ValidMeta.Type> generic)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionType(String packageName, String simpleName, List<ValidMeta.Type> generic) Creates an instance of aTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.squareup.javapoet.TypeNamebooleanIndicates whether some other object is "equal to" this one.generic()Returns the value of thegenericrecord component.inthashCode()Returns a hash code value for this object.static ValidMeta.Typestatic ValidMeta.TypeofClass(Class<?> clazz, List<ValidMeta.Type> generic) static ValidMeta.Typestatic ValidMeta.TypeofName(String canonicalName, List<ValidMeta.Type> generic) static ValidMeta.TypeofType(DeclaredType type) static ValidMeta.TypeofType(TypeMirror type) Returns the value of thepackageNamerecord component.Returns the value of thesimpleNamerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Type
Creates an instance of aTyperecord class.- Parameters:
packageName- the value for thepackageNamerecord componentsimpleName- the value for thesimpleNamerecord componentgeneric- the value for thegenericrecord component
-
-
Method Details
-
ofType
-
ofType
-
ofClass
-
ofClass
-
ofName
-
ofName
-
canonicalName
-
asMirror
-
asPoetType
-
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. -
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
packageName
Returns the value of thepackageNamerecord component.- Returns:
- the value of the
packageNamerecord component
-
simpleName
Returns the value of thesimpleNamerecord component.- Returns:
- the value of the
simpleNamerecord component
-
generic
Returns the value of thegenericrecord component.- Returns:
- the value of the
genericrecord component
-