List of utility methods to do Collection Add
void | addConditionImpl(Collection add Condition Impl conditions.add(condition + " " + value);
|
Collection | addDirToStringPaths(Collection add Dir To String Paths ArrayList<String> newss = new ArrayList<String>(); for (String s : ss) { try { s = addDirToStringPath(s, dir); if (s != null) newss.add(s); } catch (Exception e) { e.printStackTrace(); ... |
List | added(Collection added List<String> added = null; for (String s : nu) { if (!old.contains(s)) { if (added == null) { added = new ArrayList<String>(nu.size()); added.add(s); return added; |
Collection | added(Collection returns the elements added in List a with respect to b Collection<T> aCopy = new ArrayList<T>(a); Collection<T> bCopy = new ArrayList<T>(b); aCopy.removeAll(bCopy); return aCopy; |
Collection | addIf(Collection Adds a value to the collection if the boolean expression is true. if (expr) coll.add(value); return coll; |
boolean | addIfAbsent(Collection super T> c, T item) add If Absent return !c.contains(item) && c.add(item);
|
void | addIfMissing(Collection add If Missing if (addition == null) { return; for (E e : addition) { if (!result.contains(e)) { result.add(e); |
boolean | addIfNotContains(Collection add If Not Contains if (collection != null && value != null && !collection.contains(value)) { return collection.add(value); } else { return false; |
void | addIfNotEmpty(Collection add If Not Empty if (null != c && null != elements && !elements.isEmpty()) {
c.addAll(elements);
|
void | addIfNotNull(Collection c, Object element) add If Not Null if (element != null) {
c.add(element);
|