Package eu.bandm.tools.util.java
Class Iterators.Triplewise<T>
java.lang.Object
eu.bandm.tools.util.java.Iterators.Triplewise<T>
- Enclosing class:
Iterators
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
FieldsModifier and TypeFieldDescriptionDeprecated, for removal: This API element is subject to removal in a future version.evidenprotected 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
ConstructorsModifierConstructorDescriptionprotected
Triplewise
(Iterable<T> it) Deprecated, for removal: This API element is subject to removal in a future version.evidentprotected
Triplewise
(Iterator<T> it) Deprecated, for removal: This API element is subject to removal in a future version.evident -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Deprecated, for removal: This API element is subject to removal in a future version.Call back to be overwritten by the user.void
visit()
Deprecated, for removal: This API element is subject to removal in a future version.Executes all the invocations ofaction(T, T, T)
with the argument combinations described in the table above.
-
Field Details
-
it
Deprecated, for removal: This API element is subject to removal in a future version.eviden -
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 ofaction(T, T, T)
. Will be ==null for the last two invocations, see the table above. -
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 ofaction(T, T, T)
. Will be ==null for the first and the last invocation, see the table above. -
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 ofaction(T, T, T)
. Will be ==null for the first two invocation, see the table above.
-
-
Constructor Details
-
Triplewise
Deprecated, for removal: This API element is subject to removal in a future version.evident -
Triplewise
Deprecated, for removal: This API element is subject to removal in a future version.evident
-
-
Method Details
-
action
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 ofaction(T, T, T)
with the argument combinations described in the table above.
-
Iterators.forEachTriple(java.util.Iterator<T>, eu.bandm.tools.util.function.TriConsumer<T, T, T>)
instead.