Package com.tangosol.net.cache
Class TypeAssertion.WithTypesAssertion<K,V> 
java.lang.Object
com.tangosol.net.cache.TypeAssertion.WithTypesAssertion<K,V> 
- All Implemented Interfaces:
- TypeAssertion<K,,- V> - NamedMap.Option
- Enclosing interface:
- TypeAssertion<K,- V> 
public static class TypeAssertion.WithTypesAssertion<K,V> 
extends Object
implements TypeAssertion<K,V> 
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.tangosol.net.cache.TypeAssertionTypeAssertion.WithTypesAssertion<K,V> 
- 
Field SummaryFields inherited from interface com.tangosol.net.cache.TypeAssertionWITH_RAW_TYPES, WITHOUT_TYPE_CHECKING
- 
Constructor SummaryConstructorsConstructorDescriptionWithTypesAssertion(Class<K> keyClass, Class<V> valueClass) ConstructsTypeAssertion.WithTypesAssertion
- 
Method SummaryModifier and TypeMethodDescriptionbooleanassertTypeSafety(String sCacheName, CacheMapping cacheMapping, boolean fLog) Asserts the type compatibility of a named cache given theCacheMappingthat defines the cache.booleanGet Key ClassNameGet Value ClassNameinthashCode()toString()Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.tangosol.net.cache.TypeAssertionassertTypeSafety
- 
Constructor Details- 
WithTypesAssertionConstructsTypeAssertion.WithTypesAssertion- Parameters:
- keyClass- non-null key type
- valueClass- non-null value type
 
 
- 
- 
Method Details- 
assertTypeSafetypublic boolean assertTypeSafety(String sCacheName, CacheMapping cacheMapping, boolean fLog) throws IllegalArgumentException Asserts the type compatibility of a named cache given theCacheMappingthat defines the cache.- Specified by:
- assertTypeSafetyin interface- TypeAssertion<K,- V> 
- Parameters:
- sCacheName- the name of the cache
- cacheMapping- the- CacheMapping
- fLog- when true, log warning if typing mismatch between- CacheMappingconfiguration and this- TypeAssertion; specifically, one uses raw types and the other asserts specific types.
- Returns:
- false if warning logged about the assertion, true otherwise.
- Throws:
- IllegalArgumentException- when types used with the- TypeAssertionare illegal according to the configuration
 
- 
getKeyClassNameGet Key ClassName- Returns:
- key class name
 
- 
getValueClassNameGet Value ClassName- Returns:
- Value class name
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-