Class RMKeyList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
com.inductiveautomation.rm.base.RMKeyList
- All Implemented Interfaces:
Iterable, Collection, List, SequencedCollection
A list implementation that tries to get objects from aKey+"Size" or aKey+"Count" and aKey(index),
eg., getThingCount(), getThing(index).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn exception class which is thrown when creating a new key-list with invalid object key. -
Field Summary
Fields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the object at the given index.create()Creates a new object for this list.get(int anIndex) Returns the list element at the given index.remove(int anIndex) Removes the object at the given index.Resets the object at the given index to given object.intsize()Returns the number of objects for key-list key.Methods inherited from class AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Constructor Details
-
RMKeyList
-
RMKeyList
-
-
Method Details
-
size
public int size()Returns the number of objects for key-list key.- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList- Specified by:
sizein classAbstractCollection
-
get
Returns the list element at the given index.- Specified by:
getin interfaceList- Specified by:
getin classAbstractList
-
set
-
add
Adds the object at the given index.- Specified by:
addin interfaceList- Overrides:
addin classAbstractList
-
remove
Removes the object at the given index.- Specified by:
removein interfaceList- Overrides:
removein classAbstractList
-
create
Creates a new object for this list.
-