Java Utililty Methods List Add

List of utility methods to do List Add

Description

The list of methods to do List Add are organized into topic(s).

Method

voidput(List list, int[] values)
put
if (list == null || values == null)
    return;
for (int i = 0; i < values.length; i++) {
    list.add(values[i]);
voidput(List list, Object object)
put
list.add(object);
voidput(Map> multiValueMap, String key, Object value, boolean single)
put
synchronized (multiValueMap) {
    if (value == null) {
        if (single)
            multiValueMap.remove(key);
        return;
    List<Object> values = multiValueMap.get(key);
    if (values == null) {
...