public class TagValueTable
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TagValueTable.MutableLong
Class MutableLong defines a long integer value that may be modified.
|
| Modifier and Type | Field and Description |
|---|---|
protected FifoHashtable |
hashTableObj |
| Modifier | Constructor and Description |
|---|---|
|
TagValueTable()
Creates a tag-value table.
|
protected |
TagValueTable(FifoHashtable hashTableObj)
Protected constructor for 'entriesListStrToTable()' method.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected final FifoHashtable hashTableObj
public TagValueTable()
protected TagValueTable(FifoHashtable hashTableObj)
hashTableObj - table object to use.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.Objectpublic 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,...