Package com.inductiveautomation.rm.base
Class RMKeyList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
com.inductiveautomation.rm.base.RMKeyList
- All Implemented Interfaces:
- Iterable,- Collection,- List
A list implementation that tries to get objects from aKey+"Size" or aKey+"Count" and aKey(index), eg.,
 getThingCount(), getThing(index).
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classAn exception class which is thrown when creating a new key-list with invalid object key.
- 
Field SummaryFields inherited from class java.util.AbstractListmodCount
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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 java.util.AbstractListadd, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollectionaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.ListaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
- 
Constructor Details- 
RMKeyListCreates a new key list.
- 
RMKeyListCreates a new key list.
 
- 
- 
Method Details- 
sizepublic int size()Returns the number of objects for key-list key.- Specified by:
- sizein interface- Collection
- Specified by:
- sizein interface- List
- Specified by:
- sizein class- AbstractCollection
 
- 
getReturns the list element at the given index.- Specified by:
- getin interface- List
- Specified by:
- getin class- AbstractList
 
- 
setResets the object at the given index to given object.- Specified by:
- setin interface- List
- Overrides:
- setin class- AbstractList
 
- 
addAdds the object at the given index.- Specified by:
- addin interface- List
- Overrides:
- addin class- AbstractList
 
- 
removeRemoves the object at the given index.- Specified by:
- removein interface- List
- Overrides:
- removein class- AbstractList
 
- 
createCreates a new object for this list.
 
-