Class CacheableString

java.lang.Object
org.deltava.util.cache.CacheableString
All Implemented Interfaces:
Serializable, Cacheable

public class CacheableString extends Object implements Cacheable
A utility class to create a cacheable String.
Since:
2.2
Version:
6.1
Author:
Luke
See Also:
  • Constructor Details

    • CacheableString

      public CacheableString(Object cacheKey, String value)
      Creates the Object.
      Parameters:
      cacheKey - the cache key
      value - the string to cache
  • Method Details

    • cacheKey

      public Object cacheKey()
      Returns the cache key.
      Specified by:
      cacheKey in interface Cacheable
      Returns:
      the cache key for the object
    • getValue

      public String getValue()
      Returns the value.
      Returns:
      the value
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • equals

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