T
- Expected type of value at start of navigationpublic interface Navigator<T> extends RamaSerializable
Path
Modifier and Type | Interface and Description |
---|---|
static interface |
Navigator.Next |
Modifier and Type | Field and Description |
---|---|
static java.lang.Object |
VOID |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
select(T obj,
Navigator.Next next)
Implements codepath for select calls.
|
T |
transform(T obj,
Navigator.Next next)
Implements codepath for transform calls.
|
java.lang.Object select(T obj, Navigator.Next next)
next.invokeNext
on each navigated value and return first navigated value. If navigates to zero
values must return VOID
.obj
- Starting valuenext
- Executes rest of Path
VOID
T transform(T obj, Navigator.Next next)
next.invokeNext
to update navigated values. Should return value with all navigated values updated.obj
- Starting valuenext
- Executes rest of Path