@Test public void testCopyTombed() { final TNode<String, String> tnode = snode.copyTombed(); assertEquals(snode.hashCode(), tnode.hashCode()); assertSame(snode.getKey(), tnode.getKey()); assertSame(snode.getValue(), tnode.getValue()); }
TNode<K, V> copyTombed() { return new TNode<>(key, value, hc); }
SNode extends BasicNode implements EntryNode<K, V> { TNode<K, V> copyTombed() { return new TNode<>(key, value, hc); } }
SNode extends BasicNode implements EntryNode<K, V> { TNode<K, V> copyTombed() { return new TNode<>(key, value, hc); } SNode(final K key, final V value, final int hc); }
SNode extends BasicNode implements EntryNode<K, V> { TNode<K, V> copyTombed() { return new TNode<>(key, value, hc); } SNode(final K key, final V value, final int hc); @Override K getKey(); @Override V getValue(); @Override int hashCode(); @SuppressFBWarnings(value = "EQ_UNUSUAL", justification = "Equality handled by utility methods") @Override boolean equals(final Object obj); @Override String toString(); }
SNode extends BasicNode implements EntryNode<K, V> { TNode<K, V> copyTombed() { return new TNode<>(key, value, hc); } SNode(final K key, final V value, final int hc); @Override K getKey(); @Override V getValue(); @Override int hashCode(); @SuppressFBWarnings(value = "EQ_UNUSUAL", justification = "Equality handled by utility methods") @Override boolean equals(final Object obj); @Override String toString();  }