public class MonKeyBase extends java.lang.Object implements MonKey
LABEL_HEADER, UNITS_HEADER
Constructor and Description |
---|
MonKeyBase(java.util.LinkedHashMap keyMap)
Calls the other constructor.
|
MonKeyBase(java.lang.String rangeKeyStr,
java.util.LinkedHashMap keyMap)
The LinkHashMap will contain key value pairs.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object compareKey)
This method is called automatically by a HashMap when this class is used
as a HashMap key.
|
java.util.List |
getBasicHeader(java.util.List header)
Puts the word 'Label' into the list.
|
java.util.List |
getBasicRowData(java.util.List rowData)
Returns the values assoicated with the key as a comma delimited entry in the list.
|
java.lang.Object |
getDetails() |
java.util.List |
getDisplayHeader(java.util.List header)
Returns each key in the map as a header element in the list
|
java.util.List |
getHeader(java.util.List header)
Returns each key in the map as a header element in the list
|
java.lang.String |
getLabel() |
java.util.Map |
getMonKeyMap()
Return the map underlying this Object
|
java.lang.String |
getRangeKey()
Returns either the passed in range key, or it builds the key from the maps keys concatenated
|
java.util.List |
getRowData(java.util.List rowData)
Add each value from the map at an element to the list.
|
java.util.List |
getRowDisplayData(java.util.List rowData)
Add each value from the map at an element to the list.
|
int |
getSize()
Returns the size of the key in characters within the key.
|
java.lang.Object |
getValue(java.lang.String key)
Returns any object that has a named key.
|
int |
hashCode()
Used when key is put into a Map to look up the monitor
|
static void |
main(java.lang.String[] arg) |
void |
setDetails(java.lang.Object details) |
java.lang.String |
toString()
Returns a string representation of this object: JAMon Key, firstname=steve, lastname=souza, age=44
|
public MonKeyBase(java.util.LinkedHashMap keyMap)
public MonKeyBase(java.lang.String rangeKeyStr, java.util.LinkedHashMap keyMap)
public java.lang.Object getValue(java.lang.String key)
public boolean equals(java.lang.Object compareKey)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.Map getMonKeyMap()
public java.util.List getBasicHeader(java.util.List header)
public java.util.List getDisplayHeader(java.util.List header)
public java.util.List getHeader(java.util.List header)
public java.util.List getBasicRowData(java.util.List rowData)
public java.util.List getRowData(java.util.List rowData)
public java.util.List getRowDisplayData(java.util.List rowData)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRangeKey()
getRangeKey
in interface MonKey
public java.lang.Object getDetails()
getDetails
in interface MonKeyItem
public void setDetails(java.lang.Object details)
setDetails
in interface MonKeyItem
public int getSize()
MonKey
public static void main(java.lang.String[] arg)