public abstract static class Util.Triplewise<T> extends Object
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
DISLOC should be moved to metatools/ops/Iterators or metatools/util !?!?| Modifier and Type | Field and Description |
|---|---|
protected Iterator<T> |
it |
protected T |
last |
protected T |
lastlast |
protected T |
t |
| Constructor and Description |
|---|
Triplewise(Iterable<T> it) |
Triplewise(Iterator<T> it) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
action(T left,
T middle,
T right) |
void |
visit() |