Package fj.data.hamt
Class Node<K,V>
- java.lang.Object
-
- fj.data.hamt.Node<K,V>
-
public final class Node<K,V> extends java.lang.Object
A Hash Array Mapped Trie node that is either a key-value pair or a Hash Array Mapped Trie.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <K,V>
Node<K,V>hamtNode(HashArrayMappedTrie<K,V> hamt)
<B> B
match(F<P2<K,V>,B> f, F<HashArrayMappedTrie<K,V>,B> g)
Performs a reduction on this Node using the given arguments.static <K,V>
Node<K,V>p2Node(P2<K,V> p)
Stream<P2<K,V>>
toStream()
java.lang.String
toString()
-
-
-
Method Detail
-
hamtNode
public static <K,V> Node<K,V> hamtNode(HashArrayMappedTrie<K,V> hamt)
-
match
public <B> B match(F<P2<K,V>,B> f, F<HashArrayMappedTrie<K,V>,B> g)
Performs a reduction on this Node using the given arguments.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-