public class RMKeyValueList
extends java.lang.Object
Constructor and Description |
---|
RMKeyValueList(java.lang.Object aTarget,
java.lang.String aKey)
Creates a new key value list for given target and key.
|
Modifier and Type | Method and Description |
---|---|
void |
addKeyValue(RMKeyValue aKeyValue,
int aTime)
Adds a key value and time to key values and times list.
|
boolean |
containsTime(int aTime)
Returns whether key value list contains the given time.
|
java.lang.String |
getKey()
Returns the list key.
|
RMKeyValue |
getKeyValue(int anIndex)
Returns the individual key value at given index.
|
int |
getKeyValueCount()
Returns the number of key values.
|
java.lang.Object |
getTarget()
Returns the list target.
|
int |
getTime(int anIndex)
Returns the individual time at given index.
|
RMKeyValue |
removeKeyValue(int anIndex)
Removes the key value and time at given index.
|
int |
removeKeyValue(RMKeyValue aKeyValue)
Removes a given key value and its corresponding time.
|
int |
removeTime(int aTime)
Removes a given time and its corresponding key value.
|
void |
setTime(int aTime,
int theLastTime)
Sets the time based on key-value-time entries.
|
public RMKeyValueList(java.lang.Object aTarget, java.lang.String aKey)
public java.lang.Object getTarget()
public java.lang.String getKey()
public int getKeyValueCount()
public RMKeyValue getKeyValue(int anIndex)
public int getTime(int anIndex)
public void addKeyValue(RMKeyValue aKeyValue, int aTime)
public RMKeyValue removeKeyValue(int anIndex)
public int removeKeyValue(RMKeyValue aKeyValue)
public int removeTime(int aTime)
public boolean containsTime(int aTime)
public void setTime(int aTime, int theLastTime)