Class DeepImmutableList<E>
java.lang.Object
java.util.AbstractCollection<E>
de.cronn.reflection.util.immutable.collection.DeepImmutableCollection<E>
de.cronn.reflection.util.immutable.collection.DeepImmutableList<E>
- All Implemented Interfaces:
Immutable,Serializable,Iterable<E>,Collection<E>,List<E>,SequencedCollection<E>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanaddAll(int index, @NotNull Collection<? extends E> c) get(int index) intint@NotNull ListIterator<E> @NotNull ListIterator<E> listIterator(int index) static <T> DeepImmutableList<T> of(T elements) static <T> DeepImmutableList<T> of(T e1, T e2) static <T> DeepImmutableList<T> of(T e1, T e2, T e3) remove(int index) voidsort(Comparator<? super E> c) subList(int fromIndex, int toIndex) Methods inherited from class de.cronn.reflection.util.immutable.collection.DeepImmutableCollection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, sizeMethods inherited from class java.util.AbstractCollection
toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, addAll, addFirst, addLast, clear, contains, containsAll, equals, getFirst, getLast, hashCode, isEmpty, iterator, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, size, spliterator, toArray, toArray
-
Constructor Details
-
DeepImmutableList
-
-
Method Details
-
of
-
of
-
of
-
get
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
subList
-
set
-
add
-
remove
-
addAll
-
sort
-