List of utility methods to do Collection to List
List | collectionToList(Collection collection To List List<E> thelist = new ArrayList<E>(); for (E obj : theset) thelist.add(obj); return thelist; |
List | collectionToList(Collection Creates a new List with the same contents as the given Collection. return new ArrayList<T>(source); |
String | collectionToList(Iterable extends Object> c) collection To List StringBuffer ret = new StringBuffer(); for (Iterator<? extends Object> itr = c.iterator(); itr.hasNext();) { ret.append(itr.next().toString()); if (itr.hasNext()) ret.append(","); return ret.toString(); |
List | convertCollectionToList(Collection c) Converts a collection into a list List l = null; if (c instanceof List) { l = (List) c; } else { l = new ArrayList(); l.addAll(c); return l; ... |
List | convertCollectionToList(Collection Converts an instance of List to an instance of Collection. if (coll instanceof List) { return (List<T>) coll; } else { List<T> theReturn = new ArrayList<T>(coll); return theReturn; |
List | convertCollectionToList(Collection Methode de conversion d'une collection en Liste if (collection == null) return null; return new ArrayList<T>(collection); |
List | convertCollectionToList(final Collection convert Collection To List if (List.class.isAssignableFrom(collection.getClass())) { return (List<T>) collection; return new ArrayList<>(collection); |
String | convertCollectionToSQL(List convert Collection To SQL String s = ""; for (Integer i : listId) { s += i + ","; return s.substring(0, s.lastIndexOf(",")); |
List | newList(final Collection extends T> elements) new List return new ArrayList<T>(elements); |
List | newList(final Collection New list. return list(collection);
|