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:
java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.List<E>
,java.util.RandomAccess
public class ImmutableList<E> extends java.util.AbstractList<E> implements java.util.RandomAccess
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ImmutableList(E... elements)
protected
ImmutableList(java.util.Collection<? extends E> elements)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
E
get(int index)
java.util.Iterator<E>
iterator()
java.util.ListIterator<E>
listIterator(int index)
static <E> ImmutableList<E>
newInstance(E... elements)
static <E> ImmutableList<E>
newInstance(java.util.Collection<? extends E> elements)
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> clctn)
boolean
retainAll(java.util.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
-
-
-
-
Method Detail
-
newInstance
public static <E> ImmutableList<E> newInstance(E... elements)
-
newInstance
public static <E> ImmutableList<E> newInstance(java.util.Collection<? extends E> elements)
-
get
public E get(int index)
-
size
public int size()
-
remove
public boolean remove(java.lang.Object o)
-
removeAll
public boolean removeAll(java.util.Collection<?> clctn)
-
clear
public void clear()
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
iterator
public java.util.Iterator<E> iterator()
-
-