Package soot.util
Class IdentityHashSet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- soot.util.IdentityHashSet<E>
-
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
@Deprecated public class IdentityHashSet<E> extends AbstractSet<E> implements Set<E>
Deprecated.can be replaced withjava.util.Collections.newSetFromMap(new java.util.IdentityHashMap()) Implements a hashset with comparison over identity.- Author:
- Eric Bodden
-
-
Field Summary
Fields Modifier and Type Field Description protected IdentityHashMap<E,E>delegateDeprecated.
-
Constructor Summary
Constructors Constructor Description IdentityHashSet()Deprecated.Creates a new, empty IdentityHashSet.IdentityHashSet(Collection<E> original)Deprecated.Creates a new IdentityHashSet containing the same elements as the given collection.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanadd(E o)Deprecated.voidclear()Deprecated.booleancontains(Object o)Deprecated.booleanequals(Object obj)Deprecated.inthashCode()Deprecated.Iterator<E>iterator()Deprecated.booleanremove(Object o)Deprecated.intsize()Deprecated.StringtoString()Deprecated.-
Methods inherited from class java.util.AbstractSet
removeAll
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, retainAll, toArray, toArray
-
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, removeAll, retainAll, spliterator, toArray, toArray
-
-
-
-
Field Detail
-
delegate
protected IdentityHashMap<E,E> delegate
Deprecated.
-
-
Constructor Detail
-
IdentityHashSet
public IdentityHashSet()
Deprecated.Creates a new, empty IdentityHashSet.
-
IdentityHashSet
public IdentityHashSet(Collection<E> original)
Deprecated.Creates a new IdentityHashSet containing the same elements as the given collection.- Parameters:
original- The original collection whose elements to inherit
-
-
Method Detail
-
size
public int size()
Deprecated.- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceSet<E>- Specified by:
sizein classAbstractCollection<E>
-
contains
public boolean contains(Object o)
Deprecated.- Specified by:
containsin interfaceCollection<E>- Specified by:
containsin interfaceSet<E>- Overrides:
containsin classAbstractCollection<E>
-
add
public boolean add(E o)
Deprecated.- Specified by:
addin interfaceCollection<E>- Specified by:
addin interfaceSet<E>- Overrides:
addin classAbstractCollection<E>
-
remove
public boolean remove(Object o)
Deprecated.- Specified by:
removein interfaceCollection<E>- Specified by:
removein interfaceSet<E>- Overrides:
removein classAbstractCollection<E>
-
clear
public void clear()
Deprecated.- Specified by:
clearin interfaceCollection<E>- Specified by:
clearin interfaceSet<E>- Overrides:
clearin classAbstractCollection<E>
-
hashCode
public int hashCode()
Deprecated.- Specified by:
hashCodein interfaceCollection<E>- Specified by:
hashCodein interfaceSet<E>- Overrides:
hashCodein classAbstractSet<E>
-
equals
public boolean equals(Object obj)
Deprecated.- Specified by:
equalsin interfaceCollection<E>- Specified by:
equalsin interfaceSet<E>- Overrides:
equalsin classAbstractSet<E>
-
toString
public String toString()
Deprecated.- Overrides:
toStringin classAbstractCollection<E>
-
-