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>
An
IdentityHashMap-backed Set.- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.mina.util.MapBackedSet
map -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new IdentityHashSet instanceIdentityHashSet(int expectedMaxSize) Creates a new IdentityHashSet instanceCreates a new IdentityHashSet instance -
Method Summary
Methods inherited from class org.apache.mina.util.MapBackedSet
add, clear, contains, iterator, remove, sizeMethods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.Set
addAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
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
Creates a new IdentityHashSet instance- Parameters:
c- The elements to put in the map
-