@Test public void isSizeEquals() { List<String> list0 = new ArrayList<>(); List<String> list1 = new ArrayList<>(); Assertions.assertTrue(CollectionUtils.isSizeEquals(null, null)); Assertions.assertFalse(CollectionUtils.isSizeEquals(null, list0)); Assertions.assertFalse(CollectionUtils.isSizeEquals(list1, null)); Assertions.assertTrue(CollectionUtils.isSizeEquals(list0, list1)); list0.add("111"); Assertions.assertFalse(CollectionUtils.isSizeEquals(list0, list1)); list1.add("111"); Assertions.assertTrue(CollectionUtils.isSizeEquals(list0, list1)); }
public static boolean isSizeEquals(Collection col0, Collection col1) { if (col0 == null) { return col1 == null; } else { if (col1 == null) { return false; } else { return col0.size() == col1.size(); } } }
CollectionUtils { public static boolean isSizeEquals(Collection col0, Collection col1) { if (col0 == null) { return col1 == null; } else { if (col1 == null) { return false; } else { return col0.size() == col1.size(); } } } }
CollectionUtils { public static boolean isSizeEquals(Collection col0, Collection col1) { if (col0 == null) { return col1 == null; } else { if (col1 == null) { return false; } else { return col0.size() == col1.size(); } } }  }
CollectionUtils { public static boolean isSizeEquals(Collection col0, Collection col1) { if (col0 == null) { return col1 == null; } else { if (col1 == null) { return false; } else { return col0.size() == col1.size(); } } }  static boolean isEmpty(Collection col); static boolean isNotEmpty(Collection col); static boolean isEmpty(Object[] array); static boolean isNotEmpty(Object[] array); static String toString(Collection col); static boolean isSizeEquals(Collection col0, Collection col1); static String encodeMap(Map<String, String> map); static Map<String, String> decodeMap(String data); static List<String> toUpperList(List<String> sourceList); }
CollectionUtils { public static boolean isSizeEquals(Collection col0, Collection col1) { if (col0 == null) { return col1 == null; } else { if (col1 == null) { return false; } else { return col0.size() == col1.size(); } } }  static boolean isEmpty(Collection col); static boolean isNotEmpty(Collection col); static boolean isEmpty(Object[] array); static boolean isNotEmpty(Object[] array); static String toString(Collection col); static boolean isSizeEquals(Collection col0, Collection col1); static String encodeMap(Map<String, String> map); static Map<String, String> decodeMap(String data); static List<String> toUpperList(List<String> sourceList);  }