@Test public void testToStringEquals() throws Exception { Assert.assertTrue( ParsecEqualsUtil.toStringEquals( new ProxyServer("localhost", 4080), new ProxyServer("localhost", 4080) ) ); Assert.assertFalse( ParsecEqualsUtil.toStringEquals( new ProxyServer("localhost", 4080), new ProxyServer("localhost", 8080) ) ); }
static boolean toStringEquals(final Object lhs, final Object rhs) { if (lhs != rhs && (lhs == null || rhs == null || !lhs.toString().equals(rhs.toString()))) { return false; } return true; }
ParsecEqualsUtil { static boolean toStringEquals(final Object lhs, final Object rhs) { if (lhs != rhs && (lhs == null || rhs == null || !lhs.toString().equals(rhs.toString()))) { return false; } return true; } }
ParsecEqualsUtil { static boolean toStringEquals(final Object lhs, final Object rhs) { if (lhs != rhs && (lhs == null || rhs == null || !lhs.toString().equals(rhs.toString()))) { return false; } return true; } private  ParsecEqualsUtil(); }
ParsecEqualsUtil { static boolean toStringEquals(final Object lhs, final Object rhs) { if (lhs != rhs && (lhs == null || rhs == null || !lhs.toString().equals(rhs.toString()))) { return false; } return true; } private  ParsecEqualsUtil();  }
ParsecEqualsUtil { static boolean toStringEquals(final Object lhs, final Object rhs) { if (lhs != rhs && (lhs == null || rhs == null || !lhs.toString().equals(rhs.toString()))) { return false; } return true; } private  ParsecEqualsUtil();   }