@Test public void minusCollision() { Node<Integer, Integer> node = HAMT.<Integer, Integer>empty(); Node<Integer, Integer> node2 = node.plus(0, 10, 100, 80).plus(0, 10, 110, -1); assertThat(node2.size(), equalTo(2)); System.out.println(node + " " + node.size()); Node<Integer, Integer> node3 = node2.minus(0, 10, 110); assertThat(node3.size(), equalTo(1)); Node<Integer, Integer> node4 = node2.minus(0, 10, 100); assertThat(node4.size(), equalTo(1)); Node<Integer, Integer> node5 = node2.minus(0, 10, 8000); assertThat(node5.size(), equalTo(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();  }