Code example for InetAddress

Methods: hashCode

0
	} 
 
	@Test 
	public void testHashCode() 
	{ 
		assertTrue((addr.hashCode() ^ 20000 ^ 12344) == ep.hashCode());
	} 
 
	@Test 
	public void testHashCodesShouldBeEqualIfObjectEqual() 
	{ 
		assertTrue(ep.hashCode() == ep2.hashCode());
	} 
 
	@Test 
	public void testNotEqual() 
	{ 
		assertFalse(ep.equals(ep3));
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java