soot.util
Class IterableSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by soot.util.HashChain
          extended by soot.util.IterableSet
All Implemented Interfaces:
Serializable, Iterable, Collection, Set, Chain

public class IterableSet
extends HashChain
implements Set

See Also:
Serialized Form

Constructor Summary
IterableSet()
           
IterableSet(Collection<SootClass> c)
           
 
Method Summary
 boolean add(Object o)
          Adds the given object to this HashChain.
 Object clone()
           
 boolean equals(Object o)
           
 int hashCode()
           
 IterableSet intersection(IterableSet other)
           
 boolean intersects(IterableSet other)
           
 boolean isStrictSubsetOf(IterableSet other)
           
 boolean isStrictSupersetOf(IterableSet other)
           
 boolean isSubsetOf(IterableSet other)
           
 boolean isSupersetOf(IterableSet other)
           
 boolean remove(Object o)
          Removes the given object from this Chain.
 String toString()
          Returns a textual representation of the contents of this Chain.
 IterableSet union(IterableSet other)
           
 
Methods inherited from class soot.util.HashChain
addFirst, addLast, clear, contains, containsAll, follows, getFirst, getLast, getPredOf, getSuccOf, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, iterator, iterator, iterator, listToHashChain, removeFirst, removeLast, size, snapshotIterator, snapshotIterator, swapWith, toList
 
Methods inherited from class java.util.AbstractCollection
addAll, isEmpty, removeAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, clear, contains, containsAll, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

IterableSet

public IterableSet(Collection<SootClass> c)

IterableSet

public IterableSet()
Method Detail

add

public boolean add(Object o)
Description copied from class: HashChain
Adds the given object to this HashChain.

Specified by:
add in interface Collection
Specified by:
add in interface Set
Overrides:
add in class HashChain

remove

public boolean remove(Object o)
Description copied from interface: Chain
Removes the given object from this Chain. Parameter has to be of type Object to be compatible with the Collection interface.

Specified by:
remove in interface Collection
Specified by:
remove in interface Set
Specified by:
remove in interface Chain
Overrides:
remove in class HashChain

equals

public boolean equals(Object o)
Specified by:
equals in interface Collection
Specified by:
equals in interface Set
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection
Specified by:
hashCode in interface Set
Overrides:
hashCode in class Object

clone

public Object clone()
Overrides:
clone in class Object

isSubsetOf

public boolean isSubsetOf(IterableSet other)

isSupersetOf

public boolean isSupersetOf(IterableSet other)

isStrictSubsetOf

public boolean isStrictSubsetOf(IterableSet other)

isStrictSupersetOf

public boolean isStrictSupersetOf(IterableSet other)

intersects

public boolean intersects(IterableSet other)

intersection

public IterableSet intersection(IterableSet other)

union

public IterableSet union(IterableSet other)

toString

public String toString()
Description copied from class: HashChain
Returns a textual representation of the contents of this Chain.

Overrides:
toString in class HashChain