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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
addAll
(Collection<? extends T> c) int
void
clear()
boolean
boolean
containsAll
(Collection<?> c) int
getCounterFor
(T o) boolean
isEmpty()
iterator()
boolean
boolean
boolean
removeAll
(Collection<?> c) int
removeAndGet
(Object o, int count) int
boolean
retainAll
(Collection<?> c) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] a) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in 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
-