@Test public void testValueToLowerCase() { List<String> list = new ArrayList<String>(aList); for (int i = 0, len = list.size(); i < len; i++) { list.set(i, list.get(i).toLowerCase()); } Assert.assertArrayEquals(list.toArray(), ListUtil.valueToLowerCase(list).toArray()); }
public static List<String> valueToLowerCase(List<String> aList) { if (null == aList || aList.isEmpty()) { throw new IllegalArgumentException("您提供的作业配置有误, List不能为空."); } List<String> result = new ArrayList<String>(aList.size()); for (String oneValue : aList) { result.add(null != oneValue ? oneValue.toLowerCase() : null); } return result; }
ListUtil { public static List<String> valueToLowerCase(List<String> aList) { if (null == aList || aList.isEmpty()) { throw new IllegalArgumentException("您提供的作业配置有误, List不能为空."); } List<String> result = new ArrayList<String>(aList.size()); for (String oneValue : aList) { result.add(null != oneValue ? oneValue.toLowerCase() : null); } return result; } }
ListUtil { public static List<String> valueToLowerCase(List<String> aList) { if (null == aList || aList.isEmpty()) { throw new IllegalArgumentException("您提供的作业配置有误, List不能为空."); } List<String> result = new ArrayList<String>(aList.size()); for (String oneValue : aList) { result.add(null != oneValue ? oneValue.toLowerCase() : null); } return result; }  }
ListUtil { public static List<String> valueToLowerCase(List<String> aList) { if (null == aList || aList.isEmpty()) { throw new IllegalArgumentException("您提供的作业配置有误, List不能为空."); } List<String> result = new ArrayList<String>(aList.size()); for (String oneValue : aList) { result.add(null != oneValue ? oneValue.toLowerCase() : null); } return result; }  static boolean checkIfValueDuplicate(List<String> aList,
                                                boolean caseSensitive); static void makeSureNoValueDuplicate(List<String> aList,
                                                boolean caseSensitive); static boolean checkIfBInA(List<String> aList, List<String> bList,
                                      boolean caseSensitive); static void makeSureBInA(List<String> aList, List<String> bList,
                                    boolean caseSensitive); static boolean checkIfValueSame(List<Boolean> aList); static List<String> valueToLowerCase(List<String> aList); }
ListUtil { public static List<String> valueToLowerCase(List<String> aList) { if (null == aList || aList.isEmpty()) { throw new IllegalArgumentException("您提供的作业配置有误, List不能为空."); } List<String> result = new ArrayList<String>(aList.size()); for (String oneValue : aList) { result.add(null != oneValue ? oneValue.toLowerCase() : null); } return result; }  static boolean checkIfValueDuplicate(List<String> aList,
                                                boolean caseSensitive); static void makeSureNoValueDuplicate(List<String> aList,
                                                boolean caseSensitive); static boolean checkIfBInA(List<String> aList, List<String> bList,
                                      boolean caseSensitive); static void makeSureBInA(List<String> aList, List<String> bList,
                                    boolean caseSensitive); static boolean checkIfValueSame(List<Boolean> aList); static List<String> valueToLowerCase(List<String> aList);  }