Class BoundedPriorityList
- java.lang.Object
-
- 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)
-
-
Constructor Summary
Constructors Constructor Description BoundedPriorityList(List list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Object toadd)booleanaddAll(int index, Collection c)booleanaddAll(Collection c)voidclear()booleancontains(Object o)booleancontainsAll(Collection c)booleanequals(Object obj)inthashCode()booleanisEmpty()Iteratoriterator()booleanremove(Object o)booleanremoveAll(Collection c)ObjectremoveFirst()booleanretainAll(Collection c)intsize()Object[]toArray()Object[]toArray(Object[] a)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Constructor Detail
-
BoundedPriorityList
public BoundedPriorityList(List list)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection
-
removeFirst
public Object removeFirst()
-
add
public boolean add(Object toadd)
- Specified by:
addin interfaceCollection
-
addAll
public boolean addAll(Collection c)
- Specified by:
addAllin interfaceCollection
-
addAll
public boolean addAll(int index, Collection c)
-
clear
public void clear()
- Specified by:
clearin interfaceCollection
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection
-
containsAll
public boolean containsAll(Collection c)
- Specified by:
containsAllin interfaceCollection
-
iterator
public Iterator iterator()
- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceIterable
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection
-
removeAll
public boolean removeAll(Collection c)
- Specified by:
removeAllin interfaceCollection
-
retainAll
public boolean retainAll(Collection c)
- Specified by:
retainAllin interfaceCollection
-
size
public int size()
- Specified by:
sizein interfaceCollection
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection
-
toArray
public Object[] toArray(Object[] a)
- Specified by:
toArrayin interfaceCollection
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceCollection- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCollection- Overrides:
hashCodein classObject
-
-