Package com.biglybt.core.util
Class IdentityHashSet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- com.biglybt.core.util.IdentityHashSet<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Set<E>
public class IdentityHashSet<E> extends java.util.AbstractSet<E>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.IdentityHashMap<E,java.lang.Object>
identity_map
-
Constructor Summary
Constructors Constructor Description IdentityHashSet()
IdentityHashSet(java.util.Collection<? extends E> set)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(E entry)
void
clear()
boolean
contains(java.lang.Object entry)
java.util.Iterator<E>
iterator()
boolean
remove(java.lang.Object entry)
int
size()
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, retainAll, toArray, toArray, toString
-
-
-
-
Field Detail
-
identity_map
private final java.util.IdentityHashMap<E,java.lang.Object> identity_map
-
-
Constructor Detail
-
IdentityHashSet
public IdentityHashSet()
-
IdentityHashSet
public IdentityHashSet(java.util.Collection<? extends E> set)
-
-
Method Detail
-
size
public int size()
-
contains
public boolean contains(java.lang.Object entry)
-
add
public boolean add(E entry)
-
remove
public boolean remove(java.lang.Object entry)
-
clear
public void clear()
-
-