Class Cache2Test.TestObjectKey

  • All Implemented Interfaces:
    ObjectKey
    Enclosing class:
    Cache2Test

    public static class Cache2Test.TestObjectKey
    extends java.lang.Object
    implements ObjectKey
    • Constructor Summary

      Constructors 
      Constructor Description
      TestObjectKey​(java.lang.Integer integer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getExpired()
      Indicates whether the cached object is still valid.
      ObjectCreator getObjectCreator()
      The ObjectCreator which can create an Object for this key.
      java.lang.Object getSignature()
      A signature which must be unique within one cache system.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestObjectKey

        public TestObjectKey​(java.lang.Integer integer)
    • Method Detail

      • getExpired

        public boolean getExpired()
        Description copied from interface: ObjectKey
        Indicates whether the cached object is still valid.
        Specified by:
        getExpired in interface ObjectKey
        Returns:
        true when the object is still valid; false otherwise
      • getSignature

        public java.lang.Object getSignature()
        Description copied from interface: ObjectKey
        A signature which must be unique within one cache system. Think analogical of a key within a map.
        Specified by:
        getSignature in interface ObjectKey
        Returns:
        Signature object