com.intel.gpe.clients.api.cache
Class IdChain

java.lang.Object
  extended by com.intel.gpe.clients.api.cache.IdChain

public class IdChain
extends java.lang.Object

The chain of keys that is an identifier in the cache.

Version:
$Id: IdChain.java,v 1.1 2006/04/11 08:51:52 lukichev Exp $
Author:
Alexander Lukichev

Constructor Summary
IdChain(java.lang.Object key)
           
IdChain(java.lang.Object key, IdChain parent)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Object getKey()
           
 IdChain getParent()
           
 int hashCode()
           
 boolean prefix(IdChain prefix)
          Test if the chain start with the prefix.
 java.util.List toList()
          Represent the chain as the List.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdChain

public IdChain(java.lang.Object key)

IdChain

public IdChain(java.lang.Object key,
               IdChain parent)
Method Detail

getKey

public java.lang.Object getKey()

getParent

public IdChain getParent()

toList

public java.util.List toList()
Represent the chain as the List.

Returns:
The representation as List

prefix

public boolean prefix(IdChain prefix)
Test if the chain start with the prefix.

Parameters:
prefix - The prefix
Returns:
true if the chain starts with the prefix

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.