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,java.io.Serializable,java.lang.Iterable<E>,java.util.Collection<E>,java.util.List<E>
public class DeepImmutableList<E> extends DeepImmutableCollection<E> implements java.util.List<E>
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description DeepImmutableList(java.util.List<E> list) -
Method Summary
Modifier and Type Method Description voidadd(int index, E element)booleanaddAll(int index, @NotNull java.util.Collection<? extends E> c)Eget(int index)intindexOf(java.lang.Object o)intlastIndexOf(java.lang.Object o)@NotNull java.util.ListIterator<E>listIterator()@NotNull java.util.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)Eremove(int index)Eset(int index, E element)voidsort(java.util.Comparator<? super E> c)@NotNull java.util.List<E>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.lang.Iterable
forEachMethods inherited from interface java.util.List
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, replaceAll, retainAll, size, spliterator, toArray, toArray
-
Constructor Details
-
DeepImmutableList
-
-
Method Details
-
of
-
of
-
of
-
get
- Specified by:
getin interfacejava.util.List<E>
-
indexOf
public int indexOf(java.lang.Object o)- Specified by:
indexOfin interfacejava.util.List<E>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)- Specified by:
lastIndexOfin interfacejava.util.List<E>
-
listIterator
- Specified by:
listIteratorin interfacejava.util.List<E>
-
listIterator
- Specified by:
listIteratorin interfacejava.util.List<E>
-
subList
- Specified by:
subListin interfacejava.util.List<E>
-
set
- Specified by:
setin interfacejava.util.List<E>
-
add
- Specified by:
addin interfacejava.util.List<E>
-
remove
- Specified by:
removein interfacejava.util.List<E>
-
addAll
- Specified by:
addAllin interfacejava.util.List<E>
-
sort
- Specified by:
sortin interfacejava.util.List<E>
-