public final class HashBag<T> extends Object implements Set<T>
Constructor and Description |
---|
HashBag() |
HashBag(int initialCapacity) |
HashBag(int initialCapacity,
float loadFactor) |
HashBag(Map<? extends T,? extends org.eclipse.net4j.util.collection.HashBag.Counter> m) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T o) |
boolean |
addAll(Collection<? extends T> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
int |
getCounterFor(T o) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
public HashBag()
public HashBag(int initialCapacity, float loadFactor)
public HashBag(int initialCapacity)
public int getCounterFor(T o)
public boolean add(T o)
public boolean addAll(Collection<? extends T> c)
public void clear()
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T>
containsAll
in interface Set<T>
public boolean isEmpty()
public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public int size()
public Object[] toArray()
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.