List of utility methods to do LinkedList Create
LinkedList | createLinkedList(E... array) create Linked List LinkedList<E> newCollection = new LinkedList<E>(); if (array != null) { Collections.addAll(newCollection, array); return newCollection; |
LinkedList | createLinkedList(Iterable extends T> c) create Linked List LinkedList<T> list = new LinkedList<T>(); iterableToCollection(c, list); return list; |
void | crossProductInternal(int i, Object[][] arrays, Object[] work, LinkedList cross Product Internal if (i == arrays.length) { ret.add(Arrays.copyOf(work, work.length)); return; for (Object item : arrays[i]) { work[i] = item; crossProductInternal(i + 1, arrays, work, ret); |
LinkedList | newLinkedList(Collection new Linked List return new LinkedList<T>(c); |
LinkedList | newLinkedList(Collection new Linked List return new LinkedList<T>(initData); |
LinkedList | newLinkedList(E... elements) Creates a new LinkedList with the provided elements. return new LinkedList<>(Arrays.asList(elements)); |
LinkedList | newLinkedList(T... elements) new Linked List return new LinkedList<T>(Arrays.asList(elements)); |
LinkedList | prependAll(List ofList, LinkedList toList) Add all elements of ofList to toList if (ofList == null) { if (toList == null) { return new LinkedList(); } else { return toList; if (toList == null) { ... |