List of utility methods to do List Unmodifiable
List | addMappedUnmodifiableListEntry(Map When you have a map containing values that are array lists of a specific type... List<V> list = map.get(key); if (list == null) list = new ArrayList<V>(); else list = new ArrayList<V>(list); list.add(value); list = Collections.unmodifiableList(list); map.put(key, list); ... |
List | nullTolerantUnmodifiableList(List extends T> l) null Tolerant Unmodifiable List return l == null ? Collections.<T>emptyList() : Collections.unmodifiableList(l);
|
List | toUnmodifiableList(CharSequence... sequences) to Unmodifiable List if (sequences == null || sequences.length == 0) { return Collections.emptyList(); return Collections.unmodifiableList(Arrays.asList(sequences)); |
List | toUnmodifiableList(T[] array) to Unmodifiable List return Collections.unmodifiableList(toList(array));
|