com.adventnet.utils.jmx
Class ObjectArray
java.lang.Object
|
+--com.adventnet.utils.jmx.ObjectArray
- public class ObjectArray
- extends java.lang.Object
- implements java.io.Serializable
This class is useful in picking up an object from the Hashtable
where the key is an Object[]. Thus instead of putting Object[] as
key just make ObjectArray class instance for that Object[] and
use this as key so that different objects inside the Object[] with the
same hashCodes when queried to Hashtable get its value object.
This class overrides the toString(), hashCode() methods in java.lang.Object
- See Also:
- Serialized Form
|
Constructor Summary |
ObjectArray(java.lang.Object[] array)
Constructor which takes an Object array as a parameter |
|
Method Summary |
boolean |
equals(java.lang.Object object)
Compares the object |
(package private) java.lang.Object[] |
getObjectArray()
|
int |
hashCode()
Returns the hash code |
java.lang.String |
toString()
Returns the String representation of the Object Array |
| Methods inherited from class java.lang.Object |
,
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
ObjectArray
public ObjectArray(java.lang.Object[] array)
- Constructor which takes an Object array as a parameter
toString
public java.lang.String toString()
- Returns the String representation of the Object Array
- Overrides:
- toString in class java.lang.Object
equals
public boolean equals(java.lang.Object object)
- Compares the object
- Overrides:
- equals in class java.lang.Object
- Returns:
- true is objects are equal and false otherwise
hashCode
public int hashCode()
- Returns the hash code
- Overrides:
- hashCode in class java.lang.Object
getObjectArray
java.lang.Object[] getObjectArray()