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>
  • Constructor Details

  • Method Details

    • assertTypeSafety

      public boolean assertTypeSafety(String sCacheName, CacheMapping cacheMapping, boolean fLog) throws IllegalArgumentException
      Asserts the type compatibility of a named cache given the CacheMapping that defines the cache.
      Specified by:
      assertTypeSafety in interface TypeAssertion<K,V>
      Parameters:
      sCacheName - the name of the cache
      cacheMapping - 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.
      Returns:
      false if warning logged about the assertion, true otherwise.
      Throws:
      IllegalArgumentException - when types used with the TypeAssertion are illegal according to the configuration
    • getKeyClassName

      public String getKeyClassName()
      Get Key ClassName
      Returns:
      key class name
    • getValueClassName

      public String getValueClassName()
      Get Value ClassName
      Returns:
      Value class name
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object