T - The Java platform type.public abstract class PlainSerializableType<T> extends SerializableType<T>
SerializableType that represents a plain (non-parameterized) type.| Modifier and Type | Method and Description |
|---|---|
T |
cast(Object value)
Casts an object to the type represented by this type.
|
Class<T> |
getErasedPlatformType()
The (erased) Java platform type used to represent values of this type.
|
Type |
getGenericPlatformType()
The generic Java platform type used to represent values of this type, with parameterized
type information preserved.
|
accepts, deserializeValue, equals, hashCode, isAssignableFrom, serialize, serializeValue, test, toStringpublic Class<T> getErasedPlatformType()
SerializableTypegetErasedPlatformType in class SerializableType<T>public Type getGenericPlatformType()
SerializableTypegetGenericPlatformType in class SerializableType<T>public T cast(@Nonnull Object value)
SerializableTypeThis method does not check the value against this type's constraints. For parameterized types, this method may inspect the object and thus not run in constant time.
cast in class SerializableType<T>value - The value.