Package com.fluxtion.ext.streaming.api
Interface WrappedCollection<T,U extends java.util.Collection<T>,C extends WrappedCollection<T,U,C>>
- Type Parameters:
T
- The type held in this collectionU
- The underlying collection typeC
- The type of the subclass of WrappedCollection
- All Superinterfaces:
Stateful<T>
,WrapperBase<java.util.Collection<T>,C>
- All Known Subinterfaces:
GroupBy<T>
,WrappedList<T>
- All Known Implementing Classes:
ArrayListWrappedCollection
,SubList
public interface WrappedCollection<T,U extends java.util.Collection<T>,C extends WrappedCollection<T,U,C>> extends Stateful<T>, WrapperBase<java.util.Collection<T>,C>
- 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
-
Method Summary
Modifier and Type Method Description default Wrapper<U>
asWrapper()
U
collection()
default WrappedList<T>
comparator(java.util.Comparator comparator)
default <I extends java.lang.Integer>
voidcomparing(com.fluxtion.api.partition.LambdaReflection.SerializableBiFunction<T,T,I> func)
default <R extends java.lang.Comparable>
voidcomparing(com.fluxtion.api.partition.LambdaReflection.SerializableFunction<T,R> in)
default boolean
contains(T o)
default U
event()
The wrapped nodedefault java.lang.Class<java.util.Collection<T>>
eventClass()
The type of the wrapped nodedefault void
forEach(java.util.function.Consumer<? super T> action)
default boolean
isEmpty()
default java.util.Iterator<T>
iterator()
default <R> Wrapper<R>
map(com.fluxtion.api.partition.LambdaReflection.SerializableFunction<U,R> mapper)
WrappedCollection<T,U,C>
resetNotifier(java.lang.Object resetNotifier)
default int
size()
default java.util.stream.Stream<T>
stream()
Methods inherited from interface com.fluxtion.ext.streaming.api.Stateful
combine, deduct, reset, setBucketCount
-
Method Details
-
comparing
-
comparing
default <R extends java.lang.Comparable> void comparing(com.fluxtion.api.partition.LambdaReflection.SerializableFunction<T,R> in) -
comparator
-
collection
U collection() -
map
-
asWrapper
-
resetNotifier
-
event
Description copied from interface:WrapperBase
The wrapped node- Specified by:
event
in interfaceWrapperBase<T,U extends java.util.Collection<T>>
- Returns:
- the wrapped node
-
eventClass
Description copied from interface:WrapperBase
The type of the wrapped node- Specified by:
eventClass
in interfaceWrapperBase<T,U extends java.util.Collection<T>>
- Returns:
- wrapped node class
-
size
default int size() -
isEmpty
default boolean isEmpty() -
contains
-
iterator
-
stream
-
forEach
-