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,
boolean fLog)
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
assertTypeSafety, 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, boolean fLog) throws IllegalArgumentException
CacheMapping
that defines the cache.assertTypeSafety
in interface TypeAssertion<K,V>
sCacheName
- the name of the cachecacheMapping
- the CacheMapping
fLog
- when true, log warning if typing mismatch between CacheMapping
configuration
and this TypeAssertion
; specifically, one uses raw types and the other
asserts specific types.IllegalArgumentException
- when types used with the TypeAssertion
are illegal according to the configurationpublic String getKeyClassName()
public String getValueClassName()