soot.jimple.toolkits.annotation.arraycheck
Class BoundedPriorityList

java.lang.Object
  extended by soot.jimple.toolkits.annotation.arraycheck.BoundedPriorityList
All Implemented Interfaces:
Iterable, Collection

public class BoundedPriorityList
extends Object
implements Collection

BoundedPriorityList keeps a list in a priority queue. The order is decided by the initial list.

Author:
Eric Bodden (adapted from Feng Qian's code)

Field Summary
protected  List fulllist
           
protected  ArrayList worklist
           
 
Constructor Summary
BoundedPriorityList(List list)
           
 
Method Summary
 boolean add(Object toadd)
           
 boolean addAll(Collection c)
          
 boolean addAll(int index, Collection c)
          
 void clear()
          
 boolean contains(Object o)
          
 boolean containsAll(Collection c)
          
 boolean equals(Object obj)
          
 int hashCode()
          
 boolean isEmpty()
           
 Iterator iterator()
          
 boolean remove(Object o)
          
 boolean removeAll(Collection c)
          
 Object removeFirst()
           
 boolean retainAll(Collection c)
          
 int size()
          
 Object[] toArray()
          
 Object[] toArray(Object[] a)
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

fulllist

protected final List fulllist

worklist

protected ArrayList worklist
Constructor Detail

BoundedPriorityList

public BoundedPriorityList(List list)
Method Detail

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection

removeFirst

public Object removeFirst()

add

public boolean add(Object toadd)
Specified by:
add in interface Collection

addAll

public boolean addAll(Collection c)

Specified by:
addAll in interface Collection

addAll

public boolean addAll(int index,
                      Collection c)


clear

public void clear()

Specified by:
clear in interface Collection

contains

public boolean contains(Object o)

Specified by:
contains in interface Collection

containsAll

public boolean containsAll(Collection c)

Specified by:
containsAll in interface Collection

iterator

public Iterator iterator()

Specified by:
iterator in interface Iterable
Specified by:
iterator in interface Collection

remove

public boolean remove(Object o)

Specified by:
remove in interface Collection

removeAll

public boolean removeAll(Collection c)

Specified by:
removeAll in interface Collection

retainAll

public boolean retainAll(Collection c)

Specified by:
retainAll in interface Collection

size

public int size()

Specified by:
size in interface Collection

toArray

public Object[] toArray()

Specified by:
toArray in interface Collection

toArray

public Object[] toArray(Object[] a)

Specified by:
toArray in interface Collection

toString

public String toString()

Overrides:
toString in class Object

equals

public boolean equals(Object obj)

Specified by:
equals in interface Collection
Overrides:
equals in class Object

hashCode

public int hashCode()

Specified by:
hashCode in interface Collection
Overrides:
hashCode in class Object