org.apache.myfaces.trinidadinternal.agent
Class CapabilityKey

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.agent.CapabilityKey

public final class CapabilityKey
extends java.lang.Object

Key for capability Pretty much an impl similar to uix of AgentCapabilityKey -- added method getKeyAt (and required storage units) -- remove getKeyCount as ...


Method Summary
 boolean equals(java.lang.Object obj)
           
static CapabilityKey getCapabilityKey(java.lang.String capabilityName)
           
static CapabilityKey getCapabilityKey(java.lang.String capabilityName, boolean createIfNull)
          Create a new CapabilityKey.
 java.lang.String getCapabilityName()
           
 int getIndex()
           
static CapabilityKey getKeyAt(int index)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getCapabilityKey

public static CapabilityKey getCapabilityKey(java.lang.String capabilityName,
                                             boolean createIfNull)
Create a new CapabilityKey. If an key with name already exists returns the pre-created CapabilityKey

Parameters:
capabilityName -

getCapabilityKey

public static CapabilityKey getCapabilityKey(java.lang.String capabilityName)
Parameters:
capabilityName -
Returns:
CapabilityKey for the capability name

getCapabilityName

public java.lang.String getCapabilityName()
Returns:
capability name

getIndex

public int getIndex()
Returns:
capability key index

getKeyAt

public static CapabilityKey getKeyAt(int index)
Parameters:
index -
Returns:
CapabilityKey with the specified index

equals

public boolean equals(java.lang.Object obj)
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 © 2001-2007 Apache Software Foundation. All Rights Reserved.