Class Iterators.Triplewise<T>

java.lang.Object
eu.bandm.tools.util.java.Iterators.Triplewise<T>
Enclosing class:
Iterators

@Deprecated(forRemoval=true) public abstract static class Iterators.Triplewise<T> extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Visitor which performs the method action(Object,Object,Object) for triples of adjacent elements of an Iterable. The references wander through the positions, from the third to the first. The schema for a four element list is as follows:
      null null #0
      null #0   #1
      #0   #1   #2
      #1   #2   #3
      #2   #3   null
      #3   null null
  
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Iterator<T>
    Deprecated, for removal: This API element is subject to removal in a future version.
    eviden
    protected T
    Deprecated, for removal: This API element is subject to removal in a future version.
    The middle of the three visited instances (in the sequential order of the visitor).
    protected T
    Deprecated, for removal: This API element is subject to removal in a future version.
    The first of the three visited instances (in the sequential order of the visitor).
    protected T
    Deprecated, for removal: This API element is subject to removal in a future version.
    The last of the three visited instances (in the sequential order of the visitor).
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Deprecated, for removal: This API element is subject to removal in a future version.
    evident
    protected
    Deprecated, for removal: This API element is subject to removal in a future version.
    evident
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    action(T left, T middle, T right)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Call back to be overwritten by the user.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Executes all the invocations of action(T, T, T) with the argument combinations described in the table above.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • it

      protected final Iterator<T> it
      Deprecated, for removal: This API element is subject to removal in a future version.
      eviden
    • t

      protected T t
      Deprecated, for removal: This API element is subject to removal in a future version.
      The last of the three visited instances (in the sequential order of the visitor). Will be the last parameter in the invocation of action(T, T, T). Will be ==null for the last two invocations, see the table above.
    • last

      protected T last
      Deprecated, for removal: This API element is subject to removal in a future version.
      The middle of the three visited instances (in the sequential order of the visitor). Will be the midle parameter in the invocations of action(T, T, T). Will be ==null for the first and the last invocation, see the table above.
    • lastlast

      protected T lastlast
      Deprecated, for removal: This API element is subject to removal in a future version.
      The first of the three visited instances (in the sequential order of the visitor). Will be the first parameter in the invocations of action(T, T, T). Will be ==null for the first two invocation, see the table above.
  • Constructor Details

    • Triplewise

      protected Triplewise(Iterable<T> it)
      Deprecated, for removal: This API element is subject to removal in a future version.
      evident
    • Triplewise

      protected Triplewise(Iterator<T> it)
      Deprecated, for removal: This API element is subject to removal in a future version.
      evident
  • Method Details

    • action

      public abstract void action(@Opt T left, @Opt T middle, @Opt T right)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Call back to be overwritten by the user. Define here what to do on the invocations which follow the table above.
    • visit

      public void visit()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Executes all the invocations of action(T, T, T) with the argument combinations described in the table above.