@Test public void replace() throws Exception { Node<Integer, Integer> node = HAMT.<Integer, Integer>empty().plus(0, 1, 1, 1); assertThat(node.size(), equalTo(1)); assertThat(node.get(0, 1, 1), equalTo(Option.some(1))); node = node.plus(0, 1, 1, 2); assertThat(node.get(0, 1, 1), equalTo(Option.some(2))); }
public static <K, V> Node<K, V> empty() { return EmptyNode.Instance; }
HAMT implements Serializable { public static <K, V> Node<K, V> empty() { return EmptyNode.Instance; } }
HAMT implements Serializable { public static <K, V> Node<K, V> empty() { return EmptyNode.Instance; }  }
HAMT implements Serializable { public static <K, V> Node<K, V> empty() { return EmptyNode.Instance; }  static Node<K, V> empty(); }
HAMT implements Serializable { public static <K, V> Node<K, V> empty() { return EmptyNode.Instance; }  static Node<K, V> empty();  }