List of utility methods to do List Value Add
void | add(final Integer id, final TreeMap add List<T> list = map.get(id); if (list == null) { list = new ArrayList<>(); map.put(id, list); list.add(object); |
List | add(final List add if (objects == null) return list; for (final T object : objects) list.add(object); return list; |
void | add(final List add if (toList == null || fromList == null) { return; for (T t : fromList) { if (!toList.contains(t)) { toList.add(t); |
void | add(List list, int index, Object element) Adds a object to a list and extends the list by null values if the index is greater than the size. int size = list.size(); if (index < size) { list.add(index, element); return; for (int i = size; i < index; i++) { list.add(null); list.add(element); |
List | add(List valList, Object src) add if (src == null) { return valList; if (src instanceof List) { valList.addAll((List) src); } else { valList.add(src); return valList; |
List | add(List extends E> list, E element) Returns the given List instance or a new List instance if the given one is null. @SuppressWarnings("unchecked") List<E> retlist = (List<E>) list; if (list == null) { retlist = new ArrayList<E>(); retlist.add(element); return retlist; |
void | add(List add if (loader != null) {
result.add(loader);
|
List | add(List add if (element != null) { List<E> newList = new ArrayList<E>(); if (list != null) { newList.addAll(list); newList.add(element); return newList; return list; |
void | add(List Adds the given item to the list at specified index .
if (index < list.size()) list.add(index, item); else list.add(item); |
void | add(List Adds the given item to the list at specified index .
if (index < list.size()) { list.add(index, item); } else { list.add(item); |