Package org.apache.felix.framework.util
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
,SequencedCollection<E>
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ImmutableList
(E... elements) protected
ImmutableList
(Collection<? extends E> elements) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
get
(int index) iterator()
listIterator
(int index) static <E> ImmutableList
<E> newInstance
(E... elements) static <E> ImmutableList
<E> newInstance
(Collection<? extends E> elements) boolean
boolean
removeAll
(Collection<?> clctn) boolean
retainAll
(Collection<?> c) int
size()
Methods inherited from class java.util.AbstractList
add, add, addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, remove, removeRange, set, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, removeFirst, removeLast, replaceAll, reversed, sort, spliterator, toArray, toArray
-
Constructor Details
-
ImmutableList
-
ImmutableList
-
-
Method Details
-
newInstance
-
newInstance
-
get
-
size
public int size()- Specified by:
size
in interfaceCollection<E>
- Specified by:
size
in interfaceList<E>
- Specified by:
size
in classAbstractCollection<E>
-
remove
- Specified by:
remove
in interfaceCollection<E>
- Specified by:
remove
in interfaceList<E>
- Overrides:
remove
in classAbstractCollection<E>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<E>
- Specified by:
removeAll
in interfaceList<E>
- Overrides:
removeAll
in classAbstractCollection<E>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<E>
- Specified by:
clear
in interfaceList<E>
- Overrides:
clear
in classAbstractList<E>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<E>
- Specified by:
retainAll
in interfaceList<E>
- Overrides:
retainAll
in classAbstractCollection<E>
-
iterator
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
- Overrides:
listIterator
in classAbstractList<E>
-