Class ChildCacheName

Object
ChildCacheName

public class ChildCacheName extends Object
A unique identifier for a child-cache's name commposed potentially of two elements.

The elements are:

  • the class object: guaranteed to be unique for the class.
  • an optional part-name (string): a further division of the class into different caches.
  • Constructor Details

    • ChildCacheName

      public ChildCacheName(Class<?> cls)
      Uses only the class as an identifier.

      i.e. it uses no part-name.

      Parameters:
      cls - the class.
    • ChildCacheName

      public ChildCacheName(Class<?> cls, int part)
      Uses only the class combines with an integer part-name.
      Parameters:
      cls - the class.
      part - the integer identifier.
    • ChildCacheName

      public ChildCacheName(Class<?> cls, String part)
      Uses both the class and a part-name as an identifier.
      Parameters:
      cls - the class.
      part - the part-name.
  • Method Details