public class EmptyChoosableArrayList<T> extends Object implements ChoosableArrayList<T>
emptyChoosable| Constructor and Description |
|---|
EmptyChoosableArrayList() |
| Modifier and Type | Method and Description |
|---|---|
ChoosableArrayList<T> |
add(T value) |
T |
choose()
Return the next element T in a round robin fashion.
|
T |
first() |
boolean |
isEmpty()
Is it empty?
|
Iterator<T> |
iterator() |
void |
readExternal(ObjectInput in) |
void |
readFrom(DataInput in) |
ChoosableArrayList<T> |
remove(T value) |
int |
size() |
void |
writeExternal(ObjectOutput out) |
void |
writeTo(DataOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ChoosableArrayList<T> add(T value)
add in interface ChoosableArrayList<T>public ChoosableArrayList<T> remove(T value)
remove in interface ChoosableArrayList<T>public T first()
first in interface ChoosableArrayList<T>public int size()
size in interface ChoosableArrayList<T>public boolean isEmpty()
ChoosableIterableisEmpty in interface ChoosableIterable<T>public T choose()
ChoosableIterablechoose in interface ChoosableIterable<T>public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeTo(DataOutput out) throws Exception
writeTo in interface org.jgroups.util.StreamableExceptionCopyright © 2015. All rights reserved.