Package org.cache2k.config
Class CacheTypeCapture.OfGeneric<T>
- java.lang.Object
-
- org.cache2k.config.CacheTypeCapture.OfGeneric<T>
-
- All Implemented Interfaces:
CacheType<T>
- Enclosing class:
- CacheTypeCapture<T>
public static class CacheTypeCapture.OfGeneric<T> extends Object
CacheType representing a generic type.
-
-
Field Summary
-
Fields inherited from interface org.cache2k.config.CacheType
DESCRIPTOR_TO_STRING_PREFIX
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Class<T>
getType()
Class type if not an array.CacheType<?>[]
getTypeArguments()
Known type arguments, if the type is a parametrized type.String
getTypeName()
Java language compatible type nameint
hashCode()
boolean
hasTypeArguments()
The type has generic type parameters and the concrete types are known.
-
-
-
Method Detail
-
getType
public Class<T> getType()
Description copied from interface:CacheType
Class type if not an array.
-
hasTypeArguments
public boolean hasTypeArguments()
Description copied from interface:CacheType
The type has generic type parameters and the concrete types are known.CacheType.getTypeArguments()
returns the arguments.- Specified by:
hasTypeArguments
in interfaceCacheType<T>
-
getTypeArguments
public CacheType<?>[] getTypeArguments()
Description copied from interface:CacheType
Known type arguments, if the type is a parametrized type.- Specified by:
getTypeArguments
in interfaceCacheType<T>
-
getTypeName
public String getTypeName()
Description copied from interface:CacheType
Java language compatible type name
-
-