Interface WrappedCollection<T,​U extends java.util.Collection<T>,​C extends WrappedCollection<T,​U,​C>>

Type Parameters:
T - The type held in this collection
U - The underlying collection type
C - 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

    Fields inherited from interface com.fluxtion.ext.streaming.api.WrapperBase

    counter
  • 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>
    void
    comparing​(com.fluxtion.api.partition.LambdaReflection.SerializableBiFunction<T,​T,​I> func)  
    default <R extends java.lang.Comparable>
    void
    comparing​(com.fluxtion.api.partition.LambdaReflection.SerializableFunction<T,​R> in)  
    default boolean contains​(T o)  
    default U event()
    The wrapped node
    default java.lang.Class<java.util.Collection<T>> eventClass()
    The type of the wrapped node
    default 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

    Methods inherited from interface com.fluxtion.ext.streaming.api.WrapperBase

    console, id, self
  • Method Details

    • comparing

      default <I extends java.lang.Integer> void comparing​(com.fluxtion.api.partition.LambdaReflection.SerializableBiFunction<T,​T,​I> func)
    • comparing

      default <R extends java.lang.Comparable> void comparing​(com.fluxtion.api.partition.LambdaReflection.SerializableFunction<T,​R> in)
    • comparator

      default WrappedList<T> comparator​(java.util.Comparator comparator)
    • collection

      U collection()
    • map

      default <R> Wrapper<R> map​(com.fluxtion.api.partition.LambdaReflection.SerializableFunction<U,​R> mapper)
    • asWrapper

      default Wrapper<U> asWrapper()
    • resetNotifier

      WrappedCollection<T,​U,​C> resetNotifier​(java.lang.Object resetNotifier)
    • event

      default U event()
      Description copied from interface: WrapperBase
      The wrapped node
      Specified by:
      event in interface WrapperBase<T,​U extends java.util.Collection<T>>
      Returns:
      the wrapped node
    • eventClass

      default java.lang.Class<java.util.Collection<T>> eventClass()
      Description copied from interface: WrapperBase
      The type of the wrapped node
      Specified by:
      eventClass in interface WrapperBase<T,​U extends java.util.Collection<T>>
      Returns:
      wrapped node class
    • size

      default int size()
    • isEmpty

      default boolean isEmpty()
    • contains

      default boolean contains​(T o)
    • iterator

      default java.util.Iterator<T> iterator()
    • stream

      default java.util.stream.Stream<T> stream()
    • forEach

      default void forEach​(java.util.function.Consumer<? super T> action)