| Package | Description |
|---|---|
| org.cache2k |
API package for cache2k Java caching library.
|
| org.cache2k.configuration |
The cache configuration as a Java bean and support types.
|
| Modifier and Type | Method and Description |
|---|---|
<K2> Cache2kBuilder<K2,V> |
Cache2kBuilder.keyType(CacheType<K2> t)
The used type of the cache key.
|
<T2> Cache2kBuilder<K,T2> |
Cache2kBuilder.valueType(CacheType<T2> t)
Sets the value type to use.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CacheTypeCapture<T>
Helper class to capture generic types into a type descriptor.
|
static class |
CacheTypeCapture.OfArray
CacheType representing an array.
|
static class |
CacheTypeCapture.OfClass
CacheType representing a class.
|
static class |
CacheTypeCapture.OfGeneric
CacheType representing a generic type.
|
| Modifier and Type | Method and Description |
|---|---|
CacheType<T> |
CacheType.getBeanRepresentation()
Return a serializable version of this type descriptor.
|
CacheType<T> |
CacheTypeCapture.getBeanRepresentation() |
CacheType<?> |
CacheType.getComponentType()
The component type in case of an array
|
CacheType<?> |
CacheTypeCapture.getComponentType() |
CacheType |
CacheTypeCapture.OfArray.getComponentType() |
CacheType<K> |
Cache2kConfiguration.getKeyType() |
CacheType<?>[] |
CacheType.getTypeArguments()
Known type arguments, if the type is a parametrized type.
|
CacheType<?>[] |
CacheTypeCapture.getTypeArguments() |
CacheType[] |
CacheTypeCapture.OfGeneric.getTypeArguments() |
CacheType<V> |
Cache2kConfiguration.getValueType() |
static <T> CacheType<T> |
CacheTypeCapture.of(Class<T> t) |
static CacheType |
CacheTypeCapture.of(Type t) |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Cache2kConfiguration<K,V> |
Cache2kConfiguration.of(CacheType<K> keyType,
CacheType<V> valueType)
Construct a config instance setting the type parameters and returning a
proper generic type.
|
static <K,V> Cache2kConfiguration<K,V> |
Cache2kConfiguration.of(CacheType<K> keyType,
CacheType<V> valueType)
Construct a config instance setting the type parameters and returning a
proper generic type.
|
static <K,V> Cache2kConfiguration<K,V> |
Cache2kConfiguration.of(CacheType<K> keyType,
Class<V> valueType)
Construct a config instance setting the type parameters and returning a
proper generic type.
|
static <K,V> Cache2kConfiguration<K,V> |
Cache2kConfiguration.of(Class<K> keyType,
CacheType<V> valueType)
Construct a config instance setting the type parameters and returning a
proper generic type.
|
void |
CacheTypeCapture.OfArray.setComponentType(CacheType componentType) |
void |
Cache2kConfiguration.setKeyType(CacheType<K> v) |
void |
CacheTypeCapture.OfGeneric.setTypeArguments(CacheType[] typeArguments) |
void |
Cache2kConfiguration.setValueType(CacheType<V> v) |
| Constructor and Description |
|---|
OfArray(CacheType componentType) |
OfGeneric(Class<?> type,
CacheType[] typeArguments) |
cache2k API documentation. Copyright © 2000–2019 headissue GmbH, Munich.