Package org.huiche.support
Record Class SyntheticParameterizedType
java.lang.Object
java.lang.Record
org.huiche.support.SyntheticParameterizedType
- All Implemented Interfaces:
ParameterizedType,Type
public record SyntheticParameterizedType(Class<?> rawType, Type[] typeArguments)
extends Record
implements ParameterizedType
- Author:
- Maning
-
Constructor Summary
ConstructorsConstructorDescriptionSyntheticParameterizedType(Class<?> rawType, Type[] typeArguments) Creates an instance of aSyntheticParameterizedTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Type[]final inthashCode()Returns a hash code value for this object.Class<?>rawType()Returns the value of therawTyperecord component.final StringtoString()Returns a string representation of this record class.Type[]Returns the value of thetypeArgumentsrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.reflect.Type
getTypeName
-
Constructor Details
-
SyntheticParameterizedType
Creates an instance of aSyntheticParameterizedTyperecord class.- Parameters:
rawType- the value for therawTyperecord componenttypeArguments- the value for thetypeArgumentsrecord component
-
-
Method Details
-
getActualTypeArguments
- Specified by:
getActualTypeArgumentsin interfaceParameterizedType
-
getRawType
- Specified by:
getRawTypein interfaceParameterizedType
-
getOwnerType
- Specified by:
getOwnerTypein interfaceParameterizedType
-
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). -
rawType
Returns the value of therawTyperecord component.- Returns:
- the value of the
rawTyperecord component
-
typeArguments
Returns the value of thetypeArgumentsrecord component.- Returns:
- the value of the
typeArgumentsrecord component
-