Class HashBag<T>
java.lang.Object
org.eclipse.net4j.util.collection.HashBag<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,Set<T>
- Author:
- Eike Stepper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanaddAll(Collection<? extends T> c) intvoidclear()booleanbooleancontainsAll(Collection<?> c) intgetCounterFor(T o) booleanisEmpty()iterator()booleanbooleanbooleanremoveAll(Collection<?> c) intremoveAndGet(Object o, int count) intbooleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
equals, hashCode, spliterator
-
Constructor Details
-
HashBag
public HashBag() -
HashBag
public HashBag(int initialCapacity, float loadFactor) -
HashBag
public HashBag(int initialCapacity) -
HashBag
-
-
Method Details
-
getCounterFor
- Since:
- 3.0
-
removeCounterFor
- Since:
- 3.7
-
add
-
add
- Since:
- 3.4
-
addAndGet
- Since:
- 3.16
-
addAll
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceSet<T>
-
isEmpty
public boolean isEmpty() -
iterator
-
remove
-
remove
- Since:
- 3.4
-
removeAndGet
- Since:
- 3.16
-
removeAll
-
retainAll
-
size
public int size() -
toArray
-
toArray
public <T> T[] toArray(T[] a) -
toString
-