Package org.drools.core.phreak
Class ReactiveList<T>
- java.lang.Object
-
- org.drools.core.phreak.AbstractReactiveObject
-
- org.drools.core.phreak.ReactiveCollection<T,java.util.List<T>>
-
- org.drools.core.phreak.ReactiveList<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>,java.util.Collection<T>,java.util.List<T>,ReactiveObject
public class ReactiveList<T> extends ReactiveCollection<T,java.util.List<T>> implements java.util.List<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.drools.core.phreak.ReactiveCollection
ReactiveCollection.ReactiveIterator<WI extends java.util.Iterator<T>>
-
-
Field Summary
-
Fields inherited from class org.drools.core.phreak.ReactiveCollection
wrapped
-
-
Constructor Summary
Constructors Constructor Description ReactiveList()ReactiveList(java.util.List<T> wrapped)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, T element)booleanaddAll(int index, java.util.Collection<? extends T> c)Tget(int index)intindexOf(java.lang.Object o)intlastIndexOf(java.lang.Object o)java.util.ListIterator<T>listIterator()java.util.ListIterator<T>listIterator(int index)Tremove(int index)Tset(int index, T element)java.util.List<T>subList(int fromIndex, int toIndex)java.lang.StringtoString()-
Methods inherited from class org.drools.core.phreak.ReactiveCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from class org.drools.core.phreak.AbstractReactiveObject
addLeftTuple, getLeftTuples, notifyModification, removeLeftTuple
-
-
-
-
Constructor Detail
-
ReactiveList
public ReactiveList()
-
ReactiveList
public ReactiveList(java.util.List<T> wrapped)
-
-
Method Detail
-
addAll
public boolean addAll(int index, java.util.Collection<? extends T> c)- Specified by:
addAllin interfacejava.util.List<T>
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOfin interfacejava.util.List<T>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOfin interfacejava.util.List<T>
-
subList
public java.util.List<T> subList(int fromIndex, int toIndex)
- Specified by:
subListin interfacejava.util.List<T>
-
listIterator
public java.util.ListIterator<T> listIterator()
- Specified by:
listIteratorin interfacejava.util.List<T>
-
listIterator
public java.util.ListIterator<T> listIterator(int index)
- Specified by:
listIteratorin interfacejava.util.List<T>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classReactiveCollection<T,java.util.List<T>>
-
-