Class ImmutableList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.apache.felix.framework.util.ImmutableList<E>
- All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>, RandomAccess
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class AbstractList
modCount -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedImmutableList(E... elements) protectedImmutableList(Collection<? extends E> elements) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()get(int index) iterator()listIterator(int index) static <E> ImmutableList<E> newInstance(E... elements) static <E> ImmutableList<E> newInstance(Collection<? extends E> elements) booleanbooleanremoveAll(Collection<?> clctn) booleanretainAll(Collection<?> c) intsize()Methods inherited from class AbstractList
add, add, addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, remove, removeRange, set, subListMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, streamMethods inherited from interface List
addAll, contains, containsAll, isEmpty, replaceAll, sort, spliterator, toArray, toArray
-
Field Details
-
elements
-
-
Constructor Details
-
ImmutableList
-
ImmutableList
-
-
Method Details
-
newInstance
-
newInstance
-
get
-
size
public int size()- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceList<E>- Specified by:
sizein classAbstractCollection<E>
-
remove
- Specified by:
removein interfaceCollection<E>- Specified by:
removein interfaceList<E>- Overrides:
removein classAbstractCollection<E>
-
removeAll
- Specified by:
removeAllin interfaceCollection<E>- Specified by:
removeAllin interfaceList<E>- Overrides:
removeAllin classAbstractCollection<E>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<E>- Specified by:
clearin interfaceList<E>- Overrides:
clearin classAbstractList<E>
-
retainAll
- Specified by:
retainAllin interfaceCollection<E>- Specified by:
retainAllin interfaceList<E>- Overrides:
retainAllin classAbstractCollection<E>
-
iterator
-
listIterator
- Specified by:
listIteratorin interfaceList<E>- Overrides:
listIteratorin classAbstractList<E>
-