soot.jimple.spark.ondemand.genericutil
Class ArraySet<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<T>
          extended by soot.jimple.spark.ondemand.genericutil.ArraySet<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>, Set<T>
Direct Known Subclasses:
AllocAndContextSet, DemandCSPointsTo.CallingContextSet

public class ArraySet<T>
extends AbstractSet<T>


Nested Class Summary
 class ArraySet.ArraySetIterator
           
 
Constructor Summary
ArraySet()
           
ArraySet(ArraySet<T> other)
           
ArraySet(Collection<T> other)
           
ArraySet(int numElems_, boolean checkDupes)
           
 
Method Summary
 boolean add(T obj_)
           
 boolean addAll(ArraySet<T> other)
           
 boolean addAll(Collection<? extends T> c)
           
 void clear()
           
 boolean contains(Object obj_)
           
static
<T> ArraySet<T>
empty()
           
 void forall(ObjectVisitor<T> visitor_)
           
 T get(int i)
           
 boolean intersects(ArraySet<T> other)
           
 boolean isEmpty()
           
 Iterator<T> iterator()
           
 boolean remove(int ind)
           
 boolean remove(Object obj_)
           
 int size()
           
 Object[] toArray()
           
<U> U[]
toArray(U[] a)
           
 String toString()
           
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
containsAll, retainAll
 

Constructor Detail

ArraySet

public ArraySet(int numElems_,
                boolean checkDupes)

ArraySet

public ArraySet()

ArraySet

public ArraySet(ArraySet<T> other)

ArraySet

public ArraySet(Collection<T> other)
Method Detail

empty

public static final <T> ArraySet<T> empty()

add

public boolean add(T obj_)
Specified by:
add in interface Collection<T>
Specified by:
add in interface Set<T>
Overrides:
add in class AbstractCollection<T>

addAll

public boolean addAll(ArraySet<T> other)

contains

public boolean contains(Object obj_)
Specified by:
contains in interface Collection<T>
Specified by:
contains in interface Set<T>
Overrides:
contains in class AbstractCollection<T>

intersects

public boolean intersects(ArraySet<T> other)

forall

public void forall(ObjectVisitor<T> visitor_)

size

public int size()
Specified by:
size in interface Collection<T>
Specified by:
size in interface Set<T>
Specified by:
size in class AbstractCollection<T>

get

public T get(int i)

remove

public boolean remove(Object obj_)
Specified by:
remove in interface Collection<T>
Specified by:
remove in interface Set<T>
Overrides:
remove in class AbstractCollection<T>

remove

public boolean remove(int ind)
Parameters:
ind -
Returns:

clear

public void clear()
Specified by:
clear in interface Collection<T>
Specified by:
clear in interface Set<T>
Overrides:
clear in class AbstractCollection<T>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<T>
Specified by:
isEmpty in interface Set<T>
Overrides:
isEmpty in class AbstractCollection<T>

toString

public String toString()
Overrides:
toString in class AbstractCollection<T>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<T>
Specified by:
toArray in interface Set<T>
Overrides:
toArray in class AbstractCollection<T>

addAll

public boolean addAll(Collection<? extends T> c)
Specified by:
addAll in interface Collection<T>
Specified by:
addAll in interface Set<T>
Overrides:
addAll in class AbstractCollection<T>

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T>
Specified by:
iterator in interface Collection<T>
Specified by:
iterator in interface Set<T>
Specified by:
iterator in class AbstractCollection<T>

toArray

public <U> U[] toArray(U[] a)
Specified by:
toArray in interface Collection<T>
Specified by:
toArray in interface Set<T>
Overrides:
toArray in class AbstractCollection<T>