Package com.illumon.iris.web.shared.fu
Interface SingleLinkedNode<T>
- Type Parameters:
T-
- All Known Subinterfaces:
DoubleLinkedNode<T>,MutableGraphNode<T>
public interface SingleLinkedNode<T>
A node which has a
getNext() 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 json-serialized lists
to stitch in the real __proto__ (ick).-
Method Summary
Modifier and TypeMethodDescriptiondetach()default LinkedIterable<SingleLinkedNode<T>>forward()default MappedIterable<T>getNext()default TgetValue()
-
Method Details
-
getNext
-
getNextValue
-
getValue
-
forward
-
detach
JsRunnable detach() -
forwardValues
-