List of usage examples for java.util LinkedHashMap hashCode
int hashCode();
From source file:com.google.gwt.emultest.java.util.LinkedHashMapTest.java
public void testHashCode() { LinkedHashMap<String, String> hashMap = new LinkedHashMap<String, String>(); checkEmptyLinkedHashMapAssumptions(hashMap); // Check that hashCode changes int hashCode1 = hashMap.hashCode(); hashMap.put(KEY_KEY, VALUE_VAL);/* ww w . j a va2 s .c o m*/ int hashCode2 = hashMap.hashCode(); assertTrue(hashCode1 != hashCode2); }