org.apache.jcs.engine.control.group
Class GroupId

java.lang.Object
  extended by org.apache.jcs.engine.control.group.GroupId
All Implemented Interfaces:
java.io.Serializable

public class GroupId
extends java.lang.Object
implements java.io.Serializable

Used to avoid name conflict when group cache items are mixed with non-group cache items in the same cache.

See Also:
Serialized Form

Field Summary
 java.lang.String cacheName
          the name of the region.
 java.lang.String groupName
          Description of the Field
 
Constructor Summary
GroupId(java.lang.String cacheName, java.lang.String groupName)
          Constructor for the GroupId object
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.String toString()
          Caches the value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

groupName

public final java.lang.String groupName
Description of the Field


cacheName

public final java.lang.String cacheName
the name of the region.

Constructor Detail

GroupId

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

Parameters:
cacheName -
groupName -
Method Detail

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Returns:
cacheName.hashCode() + groupName.hashCode();

toString

public java.lang.String toString()
Caches the value.

Overrides:
toString in class java.lang.Object
Returns:
debugging string.


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.