@Test public void testIsEquals(){ Assert.assertTrue(ArthasCheckUtils.isEquals(1,1)); Assert.assertTrue(ArthasCheckUtils.isEquals(1L,1L)); Assert.assertTrue(ArthasCheckUtils.isEquals("foo","foo")); Assert.assertFalse(ArthasCheckUtils.isEquals(1,2)); Assert.assertFalse(ArthasCheckUtils.isEquals("foo","bar")); }
public static <E> boolean isEquals(E src, E target) { return null == src && null == target || null != src && null != target && src.equals(target); }
ArthasCheckUtils { public static <E> boolean isEquals(E src, E target) { return null == src && null == target || null != src && null != target && src.equals(target); } }
ArthasCheckUtils { public static <E> boolean isEquals(E src, E target) { return null == src && null == target || null != src && null != target && src.equals(target); }  }
ArthasCheckUtils { public static <E> boolean isEquals(E src, E target) { return null == src && null == target || null != src && null != target && src.equals(target); }  static boolean isIn(E e, E... s); static boolean isEquals(E src, E target); }
ArthasCheckUtils { public static <E> boolean isEquals(E src, E target) { return null == src && null == target || null != src && null != target && src.equals(target); }  static boolean isIn(E e, E... s); static boolean isEquals(E src, E target);  }