juggernaut.cef

Class RandomBag<E>

public class RandomBag<E> extends Object implements Collection<E>

Constructor Summary
RandomBag()
RandomBag(Collection<? extends E> c)
RandomBag(int initCapacity)
Method Summary
booleanadd(E e)
booleanaddAll(Collection<? extends E> c)
voidclear()
booleancontains(Object o)
booleancontainsAll(Collection<?> c)
booleanisEmpty()
Iterator<E>iterator()
Eremove()
booleanremove(Object o)
booleanremoveAll(Collection<?> c)
booleanretainAll(Collection<?> c)
intsize()
Object[]toArray()
<T> T[]toArray(T[] a)

Constructor Detail

RandomBag

public RandomBag()

RandomBag

public RandomBag(Collection<? extends E> c)

RandomBag

public RandomBag(int initCapacity)

Method Detail

add

public boolean add(E e)

addAll

public boolean addAll(Collection<? extends E> c)

clear

public void clear()

contains

public boolean contains(Object o)

containsAll

public boolean containsAll(Collection<?> c)

isEmpty

public boolean isEmpty()

iterator

public Iterator<E> iterator()

remove

public E remove()

remove

public final boolean remove(Object o)

removeAll

public final boolean removeAll(Collection<?> c)

retainAll

public final boolean retainAll(Collection<?> c)

size

public int size()

toArray

public Object[] toArray()

toArray

public <T> T[] toArray(T[] a)