java.lang.Object
org.apache.commons.jcs3.engine.control.group.GroupId
All Implemented Interfaces:
Serializable

public class GroupId extends Object implements Serializable
Used to avoid name conflict when group cache items are mixed with non-group cache items in the same cache.
See Also:
  • Field Details

  • Constructor Details

    • GroupId

      public GroupId(String cacheName, String groupName)
      Constructor for the GroupId object

      Parameters:
      cacheName -
      groupName -
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      Parameters:
      obj -
      Returns:
      cacheName.equals( g.cacheName ) &&groupName.equals( g.groupName );
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Returns:
      Objects.hash(cacheName, groupName);
    • toString

      public String toString()
      Convert to string
      Overrides:
      toString in class Object
      Returns:
      the string representation of this ID.