public static class BasicEList.UnmodifiableEList<E> extends BasicEList<E>
BasicEList
.BasicEList.BasicIndexOutOfBoundsException, BasicEList.EIterator<E1>, BasicEList.EListIterator<E1>, BasicEList.FastCompare<E>, BasicEList.NonResolvingEIterator<E1>, BasicEList.NonResolvingEListIterator<E1>, BasicEList.UnmodifiableEList<E>
data, size
Constructor and Description |
---|
BasicEList.UnmodifiableEList(int size,
java.lang.Object[] data)
Creates an initialized instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(E object)
Throws an exception.
|
void |
add(int index,
E object)
Throws an exception.
|
boolean |
addAll(java.util.Collection<? extends E> collection)
Throws an exception.
|
boolean |
addAll(int index,
java.util.Collection<? extends E> collection)
Throws an exception.
|
void |
clear()
Throws an exception.
|
void |
grow(int minimumCapacity)
Throws an exception.
|
java.util.Iterator<E> |
iterator()
Returns the
basic iterator . |
java.util.ListIterator<E> |
listIterator()
Returns the
basic list iterator . |
java.util.ListIterator<E> |
listIterator(int index)
Returns the
basic list iterator advanced to the index. |
void |
move(int index,
E object)
Throws an exception.
|
E |
move(int targetIndex,
int sourceIndex)
Throws an exception.
|
E |
remove(int index)
Throws an exception.
|
boolean |
remove(java.lang.Object object)
Throws an exception.
|
boolean |
removeAll(java.util.Collection<?> collection)
Throws an exception.
|
boolean |
retainAll(java.util.Collection<?> collection)
Throws an exception.
|
E |
set(int index,
E object)
Throws an exception.
|
void |
shrink()
Throws an exception.
|
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, assign, basicGet, basicList, clone, contains, data, get, indexOf, isEmpty, lastIndexOf, newData, primitiveGet, setData, setUnique, size, toArray, toArray
basicIterator, basicListIterator, basicListIterator, canContainNull, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, getDuplicates, getNonDuplicates, hashCode, isUnique, resolve, toString, useEquals, validate
public BasicEList.UnmodifiableEList(int size, java.lang.Object[] data)
size
- the size of the list.data
- the underlying storage of the list.public E set(int index, E object)
set
in interface java.util.List<E>
set
in class AbstractEList<E>
index
- the position in question.object
- the object to set.java.lang.UnsupportedOperationException
- always because it's not supported.AbstractEList.setUnique(int, E)
public boolean add(E object)
add
in interface java.util.Collection<E>
add
in interface java.util.List<E>
add
in class AbstractEList<E>
object
- the object to be added.java.lang.UnsupportedOperationException
- always because it's not supported.AbstractEList.addUnique(Object)
public void add(int index, E object)
add
in interface java.util.List<E>
add
in class AbstractEList<E>
object
- the object to be added.java.lang.UnsupportedOperationException
- always because it's not supported.AbstractEList.addUnique(int, Object)
public boolean addAll(java.util.Collection<? extends E> collection)
addAll
in interface java.util.Collection<E>
addAll
in interface java.util.List<E>
addAll
in class AbstractEList<E>
collection
- the collection of objects to be added.java.lang.UnsupportedOperationException
- always because it's not supported.AbstractEList.addAllUnique(Collection)
public boolean addAll(int index, java.util.Collection<? extends E> collection)
addAll
in interface java.util.List<E>
addAll
in class AbstractEList<E>
index
- the index at which to add.collection
- the collection of objects to be added.java.lang.UnsupportedOperationException
- always because it's not supported.AbstractEList.addAllUnique(int, Collection)
public boolean remove(java.lang.Object object)
remove
in interface java.util.Collection<E>
remove
in interface java.util.List<E>
remove
in class AbstractEList<E>
object
- the object to be removed.java.lang.UnsupportedOperationException
- always because it's not supported.public E remove(int index)
remove
in interface java.util.List<E>
remove
in class BasicEList<E>
index
- the position of the object to remove.java.lang.UnsupportedOperationException
- always because it's not supported.public boolean removeAll(java.util.Collection<?> collection)
removeAll
in interface java.util.Collection<E>
removeAll
in interface java.util.List<E>
removeAll
in class AbstractEList<E>
collection
- the collection of objects to be removed.java.lang.UnsupportedOperationException
- always because it's not supported.public boolean retainAll(java.util.Collection<?> collection)
retainAll
in interface java.util.Collection<E>
retainAll
in interface java.util.List<E>
retainAll
in class AbstractEList<E>
collection
- the collection of objects to be retained.java.lang.UnsupportedOperationException
- always because it's not supported.public void clear()
clear
in interface java.util.Collection<E>
clear
in interface java.util.List<E>
clear
in class BasicEList<E>
java.lang.UnsupportedOperationException
- always because it's not supported.public void move(int index, E object)
public E move(int targetIndex, int sourceIndex)
move
in interface EList<E>
move
in class BasicEList<E>
targetIndex
- the new position for the object in the list.sourceIndex
- the old position of the object in the list.java.lang.UnsupportedOperationException
- always because it's not supported.public void shrink()
shrink
in class BasicEList<E>
java.lang.UnsupportedOperationException
- always because it's not supported.BasicEList.grow(int)
public void grow(int minimumCapacity)
grow
in class BasicEList<E>
java.lang.UnsupportedOperationException
- always because it's not supported.BasicEList.shrink()
public java.util.Iterator<E> iterator()
basic iterator
.iterator
in interface java.lang.Iterable<E>
iterator
in interface java.util.Collection<E>
iterator
in interface java.util.List<E>
iterator
in class AbstractEList<E>
AbstractEList.EIterator
public java.util.ListIterator<E> listIterator()
basic list iterator
.listIterator
in interface java.util.List<E>
listIterator
in class AbstractEList<E>
AbstractEList.EListIterator
public java.util.ListIterator<E> listIterator(int index)
basic list iterator
advanced to the index.listIterator
in interface java.util.List<E>
listIterator
in class AbstractEList<E>
index
- the starting index.AbstractEList.EListIterator