Package org.apache.mina.util
Class IdentityHashSet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- org.apache.mina.util.MapBackedSet<E>
-
- org.apache.mina.util.IdentityHashSet<E>
-
- Type Parameters:
E
- The element type
- All Implemented Interfaces:
Serializable
,Iterable<E>
,Collection<E>
,Set<E>
public class IdentityHashSet<E> extends MapBackedSet<E>
AnIdentityHashMap
-backedSet
.- Author:
- Apache MINA Project
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.mina.util.MapBackedSet
map
-
-
Constructor Summary
Constructors Constructor Description IdentityHashSet()
Creates a new IdentityHashSet instanceIdentityHashSet(int expectedMaxSize)
Creates a new IdentityHashSet instanceIdentityHashSet(Collection<E> c)
Creates a new IdentityHashSet instance
-
Method Summary
-
Methods inherited from class org.apache.mina.util.MapBackedSet
add, clear, contains, iterator, remove, size
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
addAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
-
-
-
-
Constructor Detail
-
IdentityHashSet
public IdentityHashSet()
Creates a new IdentityHashSet instance
-
IdentityHashSet
public IdentityHashSet(int expectedMaxSize)
Creates a new IdentityHashSet instance- Parameters:
expectedMaxSize
- The maximum size for the map
-
IdentityHashSet
public IdentityHashSet(Collection<E> c)
Creates a new IdentityHashSet instance- Parameters:
c
- The elements to put in the map
-
-