|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsoot.jimple.spark.geom.geomPA.ZArrayNumberer<E>
E - public class ZArrayNumberer<E extends Numberable>
Similar to the ArrayNumberer in soot. But, this class counts the objects from zero. And, we permit the deletion of objects from the array container. And most importantly, we permits the search for a particular object efficiently. Therefore, this class supports both efficiently insert, lookup, deletion and list queries.
| Constructor Summary | |
|---|---|
ZArrayNumberer()
|
|
| Method Summary | |
|---|---|
void |
add(E o)
Tells the numberer that a new object needs to be assigned a number. |
void |
clear()
|
long |
get(E o)
Input object o should be added to this container previously. |
E |
get(long number)
Should return the object that was assigned the number number. |
Iterator<E> |
iterator()
Returns an iterator over all objects added to the numberer. |
boolean |
remove(E o)
|
E |
searchFor(E o)
Input object o is not required to be an object added previously. |
int |
size()
Should return the number of objects that have been assigned numbers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZArrayNumberer()
| Method Detail |
|---|
public void add(E o)
Numberer
add in interface Numberer<E extends Numberable>public void clear()
public long get(E o)
get in interface Numberer<E extends Numberable>public E get(long number)
Numberer
get in interface Numberer<E extends Numberable>public E searchFor(E o)
o -
public boolean remove(E o)
public int size()
Numberer
size in interface Numberer<E extends Numberable>public Iterator<E> iterator()
IterableNumberer
iterator in interface Iterable<E extends Numberable>iterator in interface IterableNumberer<E extends Numberable>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||