public class ChoosableArrayListImpl<T> extends Object implements ChoosableArrayList<T>
emptyChoosable
Constructor and Description |
---|
ChoosableArrayListImpl() |
Modifier and Type | Method and Description |
---|---|
ChoosableArrayList<T> |
add(T value) |
T |
choose()
Return the next element T in a round robin fashion.
|
boolean |
equals(Object o) |
T |
first() |
int |
hashCode() |
boolean |
isEmpty()
Is it empty?
|
Iterator<T> |
iterator() |
void |
readExternal(ObjectInput in) |
void |
readFrom(DataInput in) |
ChoosableArrayList<T> |
remove(T value) |
int |
size() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
void |
writeTo(DataOutput out) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public 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()
ChoosableIterable
isEmpty
in interface ChoosableIterable<T>
public T choose()
ChoosableIterable
choose
in interface ChoosableIterable<T>
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
IOException
public void writeTo(DataOutput out) throws Exception
writeTo
in interface org.jgroups.util.Streamable
Exception
public void readFrom(DataInput in) throws Exception
readFrom
in interface org.jgroups.util.Streamable
Exception
Copyright © 2015. All rights reserved.