Package com.illumon.iris.web.shared.fu
Interface DoubleLinkedNode<T>
- Type Parameters:
T-
- All Superinterfaces:
SingleLinkedNode<T>
- All Known Subinterfaces:
MutableGraphNode<T>
A node which has a
getNext() and getPrev() method.
In javascript, it is accessed via instance.next property;
js "fields" are get(), set() function pairs anyway,
so if you want to override those, you can,
and reduce the `get` and `()` chars in output code.
Plus, it's a lot easier to do `{next: thing}`,
than new Nextable(thing); it's not only less characters,
the former works correctly when going through JSON.parse(),
whereas the latter would require serializing type information,
and then running O(n) passes over any "foreignly created" lists-
Method Summary
Modifier and TypeMethodDescriptiondefault LinkedIterable<DoubleLinkedNode<T>>backward()default MappedIterable<T>getNext()getPrev()default <M> DoubleLinkedNode<M>map(JsFunction<T, M> mapper) Methods inherited from interface com.illumon.iris.web.shared.fu.SingleLinkedNode
detach, forward, forwardValues, getNextValue, getValue
-
Method Details
-
getPrev
-
getNext
- Specified by:
getNextin interfaceSingleLinkedNode<T>
-
backward
-
backwardValues
-