public static class TypeAssertion.WithTypesAssertion<K,V> extends Object implements TypeAssertion<K,V>
TypeAssertion.WithTypesAssertion<K,V>
WITH_RAW_TYPES, WITHOUT_TYPE_CHECKING
Constructor and Description |
---|
WithTypesAssertion(Class<K> keyClass, Class<V> valueClass)
Constructs
TypeAssertion.WithTypesAssertion |
Modifier and Type | Method and Description |
---|---|
boolean |
assertTypeSafety(String sCacheName, CacheMapping cacheMapping)
Asserts the type compatibility of a named cache given the
CacheMapping that defines the cache. |
boolean |
equals(Object o) |
String |
getKeyClassName()
Get Key ClassName
|
String |
getValueClassName()
Get Value ClassName
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
withoutTypeChecking, withRawTypes, withTypes
public WithTypesAssertion(Class<K> keyClass, Class<V> valueClass)
TypeAssertion.WithTypesAssertion
keyClass
- non-null key typevalueClass
- non-null value typepublic boolean assertTypeSafety(String sCacheName, CacheMapping cacheMapping) throws IllegalArgumentException
CacheMapping
that defines the cache.assertTypeSafety
in interface TypeAssertion<K,V>
sCacheName
- the name of the cachecacheMapping
- the CacheMapping
IllegalArgumentException
- when types used with the TypeAssertion
are illegal according to the configurationpublic String getKeyClassName()
public String getValueClassName()