T - element typepublic class ZFixedList<T> extends java.lang.Object implements ZList<T>
| Constructor and Description |
|---|
ZFixedList(T[] contents) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int index,
T value)
Adds a value at the specified index.
|
boolean |
add(T value)
Adds an element to the collection.
|
void |
clear()
Removes all elements from this collection.
|
boolean |
contains(T value)
Checks if the collection contains the given element.
|
T |
get(int index)
Gets the element at the specified index.
|
java.lang.Class<T> |
getElementClass()
Returns the collection's element class.
|
int |
indexOf(T value)
Finds the first index of the given value.
|
java.util.Iterator<T> |
iterator() |
int |
lastIndexOf(T value)
Finds the last index of the given value.
|
T |
remove(int index)
Removes the element at the specified index.
|
boolean |
remove(T value)
Removes an element from the collection.
|
T |
set(int index,
T value)
Sets the index at the specified index.
|
int |
size()
Returns the size of this collection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAll, containsAll, isEmpty, mapLive, mapLive, reduce, removeAll, toArraypublic ZFixedList(T[] contents)
public boolean add(int index,
T value)
ZListpublic T remove(int index)
ZListpublic T get(int index)
ZListpublic T set(int index, T value)
ZListpublic int indexOf(T value)
ZListpublic int lastIndexOf(T value)
ZListlastIndexOf in interface ZList<T>value - value to findpublic java.lang.Class<T> getElementClass()
ZCollectiongetElementClass in interface ZCollection<T>public boolean add(T value)
ZCollectionadd in interface ZCollection<T>value - value to be addedpublic boolean remove(T value)
ZCollectionremove in interface ZCollection<T>value - value to be removedpublic boolean contains(T value)
ZCollectionpublic int size()
ZCollectionsize in interface ZCollection<T>public void clear()
ZCollectionclear in interface ZCollection<T>