Package com.vaadin.copilot
Record Class JavaReflectionUtil.TypeInfo
java.lang.Object
java.lang.Record
com.vaadin.copilot.JavaReflectionUtil.TypeInfo
- Enclosing class:
JavaReflectionUtil
public static record JavaReflectionUtil.TypeInfo(String typeName, List<JavaReflectionUtil.TypeInfo> typeParameters, boolean isArray, boolean isVarArgs)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTypeInfo(String typeName, List<JavaReflectionUtil.TypeInfo> typeParameters) TypeInfo(String typeName, List<JavaReflectionUtil.TypeInfo> typeParameters, boolean isArray, boolean isVarArgs) Creates an instance of aTypeInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisArray()Returns the value of theisArrayrecord component.booleanReturns the value of theisVarArgsrecord component.final StringtoString()Returns a string representation of this record class.typeName()Returns the value of thetypeNamerecord component.Returns the value of thetypeParametersrecord component.
-
Constructor Details
-
TypeInfo
-
TypeInfo
public TypeInfo(String typeName, List<JavaReflectionUtil.TypeInfo> typeParameters, boolean isArray, boolean isVarArgs) Creates an instance of aTypeInforecord class.- Parameters:
typeName- the value for thetypeNamerecord componenttypeParameters- the value for thetypeParametersrecord componentisArray- the value for theisArrayrecord componentisVarArgs- the value for theisVarArgsrecord 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. -
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 '=='. -
typeName
Returns the value of thetypeNamerecord component.- Returns:
- the value of the
typeNamerecord component
-
typeParameters
Returns the value of thetypeParametersrecord component.- Returns:
- the value of the
typeParametersrecord component
-
isArray
public boolean isArray()Returns the value of theisArrayrecord component.- Returns:
- the value of the
isArrayrecord component
-
isVarArgs
public boolean isVarArgs()Returns the value of theisVarArgsrecord component.- Returns:
- the value of the
isVarArgsrecord component
-