Package jadx.core.utils
Class ImmutableList<E>
java.lang.Object
jadx.core.utils.ImmutableList<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>,RandomAccess
Simple immutable list implementation
Warning: some methods not implemented!
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, @NotNull Collection<? extends E> c) booleanaddAll(@NotNull Collection<? extends E> c) voidclear()booleanbooleancontainsAll(@NotNull Collection<?> c) booleanvoidget(int index) inthashCode()intbooleanisEmpty()iterator()int@NotNull ListIterator<E> @NotNull ListIterator<E> listIterator(int index) remove(int index) booleanbooleanremoveAll(@NotNull Collection<?> c) booleanvoidreplaceAll(UnaryOperator<E> operator) booleanretainAll(@NotNull Collection<?> c) intsize()voidsort(Comparator<? super E> c) subList(int fromIndex, int toIndex) @NotNull Object[]toArray()<T> T[]toArray(T[] a) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
spliterator
-
Field Details
-
arr
-
-
Constructor Details
-
ImmutableList
-
ImmutableList
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
get
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<E>
-
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceList<E>
-
iterator
-
forEach
-
toArray
-
toArray
@NotNull public <T> T[] toArray(@NotNull T[] a) -
add
-
remove
-
addAll
-
addAll
-
removeAll
-
retainAll
-
replaceAll
- Specified by:
replaceAllin interfaceList<E>
-
sort
-
removeIf
- Specified by:
removeIfin interfaceCollection<E>
-
clear
public void clear() -
set
-
add
-
remove
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
subList
-
equals
-
hashCode
public int hashCode() -
toString
-