站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 common API Documentation 英文版文档

CompoundKey (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档


org.jboss.util.collection
Class CompoundKey

java.lang.Object
  extended byorg.jboss.util.collection.CompoundKey
All Implemented Interfaces:
Cloneable, Serializable

public class CompoundKey
extends Object
implements Serializable, Cloneable

An immutable compound key class.

Version:
$Revision: 1.3 $
Author:
Jason Dillon
See Also:
Serialized Form

Constructor Summary
CompoundKey(Object[] elements)
          Construct a CompoundKey.
CompoundKey(Object a, Object b)
          Construct a CompoundKey.
CompoundKey(Object a, Object b, Object c)
          Construct a CompoundKey.
 
Method Summary
 Object clone()
          Return a shallow cloned copy of this object.
 boolean equals(Object obj)
          Test the equality of an object with this.
 int hashCode()
          Get the hash code of this object.
 String toString()
          Return a string representation of this object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompoundKey

public CompoundKey(Object[] elements)
Construct a CompoundKey.

Parameters:
elements - Elements of the key.

CompoundKey

public CompoundKey(Object a,
                   Object b)
Construct a CompoundKey.

Parameters:
a - Element.
b - Element.

CompoundKey

public CompoundKey(Object a,
                   Object b,
                   Object c)
Construct a CompoundKey.

Parameters:
a - Element.
b - Element.
c - Element.
Method Detail

equals

public boolean equals(Object obj)
Test the equality of an object with this.

Parameters:
obj - Object to test equality with.
Returns:
True if object is equal.

hashCode

public int hashCode()
Get the hash code of this object.

Returns:
Hash code.

toString

public String toString()
Return a string representation of this object.

Returns:
A string representation of this object.

clone

public Object clone()
Return a shallow cloned copy of this object.

Returns:
Shallow cloned copy of this object.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.