E
- public class FiniteArrayList<E> extends java.lang.Object implements FiniteList<E>
Constructor and Description |
---|
FiniteArrayList(int maxArrayListSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o) |
void |
add(int index,
java.lang.Object element) |
boolean |
addAll(java.util.Collection<? extends E> c) |
boolean |
addAll(int index,
java.util.Collection c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection c) |
E |
get(int index) |
int |
getAmountNotCounted()
get the amount of additions that were ignored.
|
int |
getMaxSize()
get the amount that the array list will hold before ignoring new additions
|
int |
getTotalAdditionAttempts()
get the amound of total addition attempts (ignored and non-ignored)
|
int |
indexOf(java.lang.Object o) |
boolean |
isEmpty() |
java.util.Iterator |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator |
listIterator() |
java.util.ListIterator |
listIterator(int index) |
E |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection c) |
boolean |
retainAll(java.util.Collection c) |
java.lang.Object |
set(int index,
java.lang.Object element) |
int |
size() |
java.util.List |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
java.lang.Object[] |
toArray(java.lang.Object[] a) |
public int getMaxSize()
getMaxSize
in interface FiniteList<E>
public int getAmountNotCounted()
getAmountNotCounted
in interface FiniteList<E>
public int getTotalAdditionAttempts()
getTotalAdditionAttempts
in interface FiniteList<E>
public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
public java.util.Iterator iterator()
public java.lang.Object[] toArray()
public boolean add(E o)
public boolean remove(java.lang.Object o)
public boolean addAll(java.util.Collection<? extends E> c)
public boolean addAll(int index, java.util.Collection c)
addAll
in interface java.util.List<E>
public void clear()
public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List<E>
public void add(int index, java.lang.Object element)
add
in interface java.util.List<E>
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<E>
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<E>
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List<E>
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List<E>
public java.util.List subList(int fromIndex, int toIndex)
subList
in interface java.util.List<E>
public boolean retainAll(java.util.Collection c)
public boolean removeAll(java.util.Collection c)
public boolean containsAll(java.util.Collection c)