Module org.jhotdraw8.fxcollection
Record Class SimpleParameterizedType
java.lang.Object
java.lang.Record
org.jhotdraw8.fxcollection.typesafekey.SimpleParameterizedType
- All Implemented Interfaces:
ParameterizedType,Type
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleParameterizedType(@NonNull Type rawType, @NonNull Type... actualTypeArguments) Creates an instance of aSimpleParameterizedTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactualTypeArgumentsrecord component.booleanIndicates whether some other object is "equal to" this one.getTypeArgument(int i) intinthashCode()Returns a hash code value for this object.rawType()Returns the value of therawTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SimpleParameterizedType
Creates an instance of aSimpleParameterizedTyperecord class.- Parameters:
rawType- the value for therawTyperecord componentactualTypeArguments- the value for theactualTypeArgumentsrecord component
-
-
Method Details
-
getTypeArgument
-
getTypeArgumentCount
public int getTypeArgumentCount() -
getTypeName
- Specified by:
getTypeNamein interfaceType
-
getActualTypeArguments
- Specified by:
getActualTypeArgumentsin interfaceParameterizedType
-
getRawType
- Specified by:
getRawTypein interfaceParameterizedType
-
getOwnerType
- Specified by:
getOwnerTypein interfaceParameterizedType
-
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. -
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. -
rawType
Returns the value of therawTyperecord component.- Returns:
- the value of the
rawTyperecord component
-
actualTypeArguments
Returns the value of theactualTypeArgumentsrecord component.- Returns:
- the value of the
actualTypeArgumentsrecord component
-