|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.util.TagValueTable
public class TagValueTable
Class TagValueTable defines a table where each entry contains a a tag string and a mutable integer value.
Nested Class Summary | |
---|---|
static class |
TagValueTable.MutableLong
Class MutableLong defines a long integer value that may be modified. |
Field Summary | |
---|---|
protected FifoHashtable |
hashTableObj
|
Constructor Summary | |
---|---|
|
TagValueTable()
Creates a tag-value table. |
protected |
TagValueTable(FifoHashtable hashTableObj)
Protected constructor for 'entriesListStrToTable()' method. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates a shallow copy of the table. |
TagValueTable.MutableLong |
createMutableLong(long value)
Creates a new 'MutableLong' object. |
static TagValueTable |
entriesListStrToTable(java.lang.String listStr)
Creates a tag-value table from the given list string. |
long |
get(java.lang.String tagStr)
Returns the value for the given tag string. |
java.lang.String |
getEntriesListStr()
Returns a data list string of the entries contained in the table. |
java.lang.String |
getEntriesListStr(java.lang.String sepStr)
Returns a data list string of the entries contained in the table. |
java.lang.Long |
getLong(java.lang.String tagStr)
Returns the value for the given tag string. |
TagValueTable.MutableLong |
getMutableLong(java.lang.String tagStr)
Returns the value for the given tag string. |
int |
getNumEntries()
Returns the number of entries in the table. |
void |
put(java.lang.String tagStr,
long value)
Sets the value for the given tag string. |
TagValueTable.MutableLong |
remove(java.lang.String tagStr)
Removes the table entry for the given tag string. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final FifoHashtable hashTableObj
Constructor Detail |
---|
public TagValueTable()
protected TagValueTable(FifoHashtable hashTableObj)
hashTableObj
- table object to use.Method Detail |
---|
public void put(java.lang.String tagStr, long value)
tagStr
- the tag string to use.value
- the value to use.public long get(java.lang.String tagStr)
tagStr
- the tag string to use.
public java.lang.Long getLong(java.lang.String tagStr)
tagStr
- the tag string to use.
public TagValueTable.MutableLong getMutableLong(java.lang.String tagStr)
tagStr
- the tag string to use.
public TagValueTable.MutableLong remove(java.lang.String tagStr)
tagStr
- the tag string for the entry to be removed.
public TagValueTable.MutableLong createMutableLong(long value)
value
- value for new 'MutableLong' object.
public int getNumEntries()
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String getEntriesListStr(java.lang.String sepStr)
sepStr
- separator string to use between entries in the
returned string.
public java.lang.String getEntriesListStr()
public static TagValueTable entriesListStrToTable(java.lang.String listStr)
listStr
- a list string in the form: "tag"=value,...
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |