Interface WrapperBase<T,​R extends WrapperBase<T,​R>>

Type Parameters:
T - The wrapped type
R - The type of the subclass that extends WrapperBase
All Known Subinterfaces:
GroupBy<T>, WrappedCollection<T,​U,​C>, WrappedList<T>
All Known Implementing Classes:
ArrayListWrappedCollection, SubList

public interface WrapperBase<T,​R extends WrapperBase<T,​R>>
Author:
Greg Higgins [email protected]
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.util.concurrent.atomic.LongAdder counter  
  • Method Summary

    Modifier and Type Method Description
    default <S> R console​(java.lang.String prefix, com.fluxtion.api.partition.LambdaReflection.SerializableFunction<T,​S>... supplier)
    dump this node to console, prefixed with the supplied message.Object.toString() will be invoked on the node instance.
    T event()
    The wrapped node
    java.lang.Class<T> eventClass()
    The type of the wrapped node
    default R id​(java.lang.String id)  
    default R self()  
  • Field Details

    • counter

      static final java.util.concurrent.atomic.LongAdder counter
  • Method Details

    • event

      T event()
      The wrapped node
      Returns:
      the wrapped node
    • eventClass

      java.lang.Class<T> eventClass()
      The type of the wrapped node
      Returns:
      wrapped node class
    • console

      default <S> R console​(java.lang.String prefix, com.fluxtion.api.partition.LambdaReflection.SerializableFunction<T,​S>... supplier)
      dump this node to console, prefixed with the supplied message.Object.toString() will be invoked on the node instance.
      Type Parameters:
      S -
      Parameters:
      prefix - String prefix for the console message
      supplier -
      Returns:
      The current node
    • self

      default R self()
    • id

      default R id​(java.lang.String id)