public final class MultiArrangement.KeyList
extends java.util.AbstractList<K>
implements java.io.Serializable
Constructor and Description |
---|
KeyList() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(K o)
Always throws an UnsupportedOperationException
|
boolean |
addAll(java.util.Collection<? extends K> c)
Always throws an UnsupportedOperationException.
|
void |
clear() |
boolean |
contains(java.lang.Object o)
Delegates to the corresponding type-specific method.
|
boolean |
containsAll(java.util.Collection<?> c)
Checks whether this collection contains all elements from the given type-specific collection.
|
boolean |
equals(java.lang.Object o) |
K |
first() |
K |
get(int index) |
boolean |
isEmpty() |
MultiArrangement.KeyIterator |
iterator() |
K |
last() |
boolean |
remove(java.lang.Object ok)
Always throws an UnsupportedOperationException
|
boolean |
removeAll(java.util.Collection<?> c)
Remove from this collection all elements in the given type-specific collection.
|
boolean |
retainAll(java.util.Collection<?> c)
Retains in this collection only elements from the given type-specific collection.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toString() |
int |
unwrap(MultiArrangement.KeyIterator i,
java.lang.Object[] array)
Unwraps an iterator into an array.
|
int |
unwrap(MultiArrangement.KeyIterator i,
java.lang.Object[] array,
int offset,
int max)
Unwraps an iterator into an array starting at a given offset for a given number of elements.
|
add, addAll, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
public MultiArrangement.KeyIterator iterator()
public int size()
public void clear()
public K first()
public K last()
public <T> T[] toArray(T[] a)
public boolean remove(java.lang.Object ok)
public boolean add(K o)
public K get(int index)
public boolean contains(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public boolean removeAll(java.util.Collection<?> c)
public java.lang.Object[] toArray()
public boolean addAll(java.util.Collection<? extends K> c)
public boolean equals(java.lang.Object o)
public int unwrap(MultiArrangement.KeyIterator i, java.lang.Object[] array, int offset, int max)
This method iterates over the given type-specific iterator and stores the elements returned, up to a maximum of length
, in the given array starting at offset
. The
number of actually unwrapped elements is returned (it may be less than max
if the iterator emits less than max
elements).
i
- a type-specific iterator.array
- an array to contain the output of the iterator.offset
- the first element of the array to be returned.max
- the maximum number of elements to unwrap.public int unwrap(MultiArrangement.KeyIterator i, java.lang.Object[] array)
This method iterates over the given type-specific iterator and stores the elements returned in the given array. The iteration will stop when the iterator has no more elements or when the end of the array has been reached.
i
- a type-specific iterator.array
- an array to contain the output of the iterator.public boolean isEmpty()
public java.lang.String toString()
toString
in class java.util.AbstractCollection<K>
Copyright © Eben Howard 2012–2022. All rights reserved.