|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.util.AbstractMap
|
+--java.util.TreeMap
|
+--com.adventnet.utils.jmx.SortedTable
This class is used to hold the table entries in a Sorted fashion. This would be useful in the case of a JMX Agent where the indices would be handled as an Object[]. This method overrides certain methods from TreeMap and those methods are declares as synchronized.
| Inner classes inherited from class java.util.TreeMap |
java.util.TreeMap.Entry |
| Constructor Summary | |
SortedTable()
Constructor which creates a new instance of this object. |
|
| Method Summary | |
boolean |
containsKey(java.lang.Object[] keys)
Checks whether this table contains the specified keys. |
java.lang.Object |
firstEntry()
Returns the first Entry from the table. |
java.lang.Object |
get(int index)
Retrieves the Entry object identified by the index. |
java.lang.Object |
get(java.lang.Object[] keys)
Retrieves the Entry object identified by the keys. |
java.util.List |
getEntries(int startIndex,
int endIndex)
Returns a List of table indices (A List of Object[]'s) |
java.lang.Object |
getNext(java.lang.Object[] keys)
Returns the next element to the specified keys. |
java.lang.Object |
put(java.lang.Object[] keys,
java.lang.Object value)
Used to put the entry object identified by the keys. |
java.lang.Object |
remove(java.lang.Object[] keys)
Removes the entry object identified by the keys, if present. |
int |
size()
Returns the number of entries in the table. |
java.lang.Object[] |
toArray()
Used to get the values contained in this Map as an Object[]. |
java.lang.Object[] |
toArray(java.lang.Object[] o)
Returns an array containing all of the values in this Map whose runtime type is that of the specified array. |
java.lang.Object[] |
toKeysArray()
Used to get the keys contained in this Map as an Object[]. |
| Methods inherited from class java.util.TreeMap |
addAllForTreeSet,
clear,
clone,
comparator,
containsKey,
containsValue,
entrySet,
firstKey,
get,
headMap,
keySet,
lastKey,
put,
putAll,
readTreeSet,
remove,
subMap,
tailMap,
values |
| Methods inherited from class java.util.AbstractMap |
equals,
hashCode,
isEmpty,
toString |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public SortedTable()
| Method Detail |
public java.lang.Object put(java.lang.Object[] keys,
java.lang.Object value)
public java.lang.Object get(java.lang.Object[] keys)
public java.lang.Object get(int index)
toArray()
can be used when required in a loop.index - The index starting from zero.public java.lang.Object getNext(java.lang.Object[] keys)
public boolean containsKey(java.lang.Object[] keys)
public java.lang.Object remove(java.lang.Object[] keys)
public int size()
public java.lang.Object firstEntry()
public java.util.List getEntries(int startIndex,
int endIndex)
public java.lang.Object[] toKeysArray()
public java.lang.Object[] toArray()
public java.lang.Object[] toArray(java.lang.Object[] o)
Collection.toArray(Object[])
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||