Package com.fluxtion.ext.streaming.api
Class ArrayListWrappedCollection<T>
java.lang.Object
com.fluxtion.ext.streaming.api.ArrayListWrappedCollection<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Stateful<T>
,WrappedCollection<T,java.util.List<T>,WrappedList<T>>
,WrappedList<T>
,WrapperBase<java.util.Collection<T>,WrappedList<T>>
public class ArrayListWrappedCollection<T> extends java.lang.Object implements WrappedList<T>
- Author:
- Greg Higgins [email protected]
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fluxtion.ext.streaming.api.Stateful
Stateful.StatefulNumber<S>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ArrayListWrappedCollection()
ArrayListWrappedCollection(Wrapper<T> wrappedSource)
-
Method Summary
Modifier and Type Method Description ArrayListWrappedCollection<T>
addItem(T newItem)
java.util.List<T>
collection()
void
combine(Stateful<? extends T> other)
WrappedList<T>
comparator(java.util.Comparator comparator)
<I extends java.lang.Integer>
voidcomparing(com.fluxtion.api.partition.LambdaReflection.SerializableBiFunction<T,T,I> func)
<R extends java.lang.Comparable>
voidcomparing(com.fluxtion.api.partition.LambdaReflection.SerializableFunction<T,R> in)
void
deduct(Stateful<? extends T> other)
java.util.Comparator
getComparator()
java.lang.Object
getResetNotifier()
void
init()
boolean
isReversed()
WrappedList<T>
last(int n)
void
reset()
void
resetNotification(java.lang.Object resetNotifier)
WrappedList<T>
resetNotifier(java.lang.Object resetNotifier)
WrappedList<T>
reverse()
void
setComparator(java.util.Comparator comparator)
void
setResetNotifier(java.lang.Object resetNotifier)
void
setReversed(boolean reversed)
WrappedList<T>
skip(int n)
java.util.List<T>
subList(int fromIndex, int toIndex)
WrappedList<T>
top(int n)
boolean
updated()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ArrayListWrappedCollection
public ArrayListWrappedCollection() -
ArrayListWrappedCollection
-
-
Method Details
-
reset
public void reset() -
resetNotification
public void resetNotification(java.lang.Object resetNotifier) -
resetNotifier
- Specified by:
resetNotifier
in interfaceWrappedCollection<T,java.util.List<T>,WrappedList<T>>
-
getResetNotifier
public java.lang.Object getResetNotifier() -
setResetNotifier
public void setResetNotifier(java.lang.Object resetNotifier) -
init
public final void init() -
reverse
- Specified by:
reverse
in interfaceWrappedList<T>
-
top
- Specified by:
top
in interfaceWrappedList<T>
-
last
- Specified by:
last
in interfaceWrappedList<T>
-
skip
- Specified by:
skip
in interfaceWrappedList<T>
-
updated
public boolean updated() -
combine
-
deduct
-
addItem
-
comparator
- Specified by:
comparator
in interfaceWrappedCollection<T,java.util.List<T>,WrappedList<T>>
-
setComparator
public void setComparator(java.util.Comparator comparator) -
getComparator
public java.util.Comparator getComparator() -
isReversed
public boolean isReversed() -
setReversed
public void setReversed(boolean reversed) -
comparing
public <I extends java.lang.Integer> void comparing(com.fluxtion.api.partition.LambdaReflection.SerializableBiFunction<T,T,I> func)- Specified by:
comparing
in interfaceWrappedCollection<T,java.util.List<T>,WrappedList<T>>
-
comparing
public <R extends java.lang.Comparable> void comparing(com.fluxtion.api.partition.LambdaReflection.SerializableFunction<T,R> in)- Specified by:
comparing
in interfaceWrappedCollection<T,java.util.List<T>,WrappedList<T>>
-
collection
- Specified by:
collection
in interfaceWrappedCollection<T,java.util.List<T>,WrappedList<T>>
-
subList
- Specified by:
subList
in interfaceWrappedList<T>
-