Interface CacheableCollection<E>

Type Parameters:
E - the cacheable object type
All Superinterfaces:
Cacheable, Collection<E>, Iterable<E>, Serializable
All Known Implementing Classes:
CacheableList, CacheableSet

public interface CacheableCollection<E> extends Collection<E>, Cacheable
An interface to label cacheable Collections.
Since:
1.1
Version:
7.2
Author:
Luke
  • Method Details

    • cacheKey

      Object cacheKey()
      Description copied from interface: Cacheable
      Returns the cache key for this object. Caches call this method when adding the object.
      Specified by:
      cacheKey in interface Cacheable
      Returns:
      the cache key for the object
    • clone

      Creates a copy of the collection.
      Returns:
      a copy of the Collection