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 booleanequals(Object o)Class<T>getType()Class type if not an array.CacheType<?>[]getTypeArguments()Known type arguments, if the type is a parametrized type.StringgetTypeName()Java language compatible type nameinthashCode()booleanhasTypeArguments()The type has generic type parameters and the concrete types are known.
-
-
-
Method Detail
-
getType
public Class<T> getType()
Description copied from interface:CacheTypeClass type if not an array.
-
hasTypeArguments
public boolean hasTypeArguments()
Description copied from interface:CacheTypeThe type has generic type parameters and the concrete types are known.CacheType.getTypeArguments()returns the the arguments.- Specified by:
hasTypeArgumentsin interfaceCacheType<T>
-
getTypeArguments
public CacheType<?>[] getTypeArguments()
Description copied from interface:CacheTypeKnown type arguments, if the type is a parametrized type.- Specified by:
getTypeArgumentsin interfaceCacheType<T>
-
getTypeName
public String getTypeName()
Description copied from interface:CacheTypeJava language compatible type name
-
-