public class RMKeyList
extends java.util.AbstractList
Modifier and Type | Class and Description |
---|---|
static class |
RMKeyList.InvalidKeyListException
An exception class which is thrown when creating a new key-list with invalid object key.
|
Constructor and Description |
---|
RMKeyList(java.lang.Object anObj,
java.lang.String aKey)
Creates a new key list.
|
RMKeyList(java.lang.Object anObj,
java.lang.String aKey,
java.lang.String aSubkey)
Creates a new key list.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int anIndex,
java.lang.Object anObj)
Adds the object at the given index.
|
java.lang.Object |
create()
Creates a new object for this list.
|
java.lang.Object |
get(int anIndex)
Returns the list element at the given index.
|
java.lang.Object |
remove(int anIndex)
Removes the object at the given index.
|
java.lang.Object |
set(int anIndex,
java.lang.Object anObj)
Resets the object at the given index to given object.
|
int |
size()
Returns the number of objects for key-list key.
|
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList
public RMKeyList(java.lang.Object anObj, java.lang.String aKey)
public RMKeyList(java.lang.Object anObj, java.lang.String aKey, java.lang.String aSubkey)
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
size
in class java.util.AbstractCollection
public java.lang.Object get(int anIndex)
get
in interface java.util.List
get
in class java.util.AbstractList
public java.lang.Object set(int anIndex, java.lang.Object anObj)
set
in interface java.util.List
set
in class java.util.AbstractList
public void add(int anIndex, java.lang.Object anObj)
add
in interface java.util.List
add
in class java.util.AbstractList
public java.lang.Object remove(int anIndex)
remove
in interface java.util.List
remove
in class java.util.AbstractList
public java.lang.Object create()