List of utility methods to do List Prepend
void | prepend(final List prepend for (int i = 0; i < list.size(); i++) { list.add(0, element); |
List | prepend(final List Returns a list as such: [values][suffix]. List<T> list = new ArrayList<T>(values.length + suffix.size()); for (T t : values) { list.add(t); list.addAll(suffix); return list; |
List | prepend(final T value, final List prepend final List<T> values = new ArrayList<T>(); values.add(value); values.addAll(list); return values; |
List | prepend(List prepend List<E> newList = new ArrayList<>(list); newList.add(0, e); return newList; |
List | prepend(List Prepends the given items to the front of the given list, shifting the existing items if any to the right. return prepend(list, minCapacity, false, items);
|
List | prepend(String clang, List prepend try { args.add(0, clang); return args; } catch (Exception e) { ArrayList<String> commands = new ArrayList<String>(args.size() + 1); commands.add(clang); commands.addAll(args); return commands; ... |
List | prepend(String prefix, List prepend List<String> result = new ArrayList<String>(); for (String string : strings) { result.add(prefix + string); return result; |
List | prepend(String start, List prepend if (start.isEmpty()) { return suggestions; suggestions = new ArrayList<>(suggestions); for (int i = 0; i < suggestions.size(); i++) { suggestions.set(i, start + suggestions.get(i)); return suggestions; ... |
List | prependInList(T el, T[] array) prepend In List List<T> result = new ArrayList<>(array.length + 1); result.add(el); Collections.addAll(result, array); return result; |
List | prependToList(A elem, List list) Return a new list with element prepended to previous list. List<A> answer = new ArrayList<A>(list.size() + 1); answer.add(elem); answer.addAll(list); return answer; |