StringUtil { public static boolean equals(String str1, String str2) { return ObjectUtil.equals(str1, str2); }  static boolean isEmpty(String str); static boolean andIsEmpty(String... strs); static boolean orIsEmpty(String... strs); static boolean isNotEmpty(String str); static boolean isBlank(String str); static boolean andIsBlank(String... strs); static boolean orIsBlank(String... strs); static boolean isNotBlank(String str); static boolean equals(String str1, String str2); static byte[] strToBytes(String str); static String bytesToStr(byte[] bytes); static String strToHexStr(String str); static String hexStrToStr(String hexStr); static byte[] hexStrToBytes(String hexStr); static String bytesToHexStr(byte[] bytes); static String merge(Object... objects); @SneakyThrows static int toInt(String str); @SneakyThrows static long toLong(String str); @SneakyThrows static double toDouble(String str); @SneakyThrows static float toFloat(String str); @SneakyThrows static String toMD5(String str);  }
@Test public void testEquals() { assertTrue(StringUtil.equals("abc", "abc")); assertFalse(StringUtil.equals("abc", "abcd")); }