final class MethodVector extends Object
Modifier and Type | Field and Description |
---|---|
private RVMMethod[] |
array |
private int |
cnt |
private static RVMMethod[] |
empty |
private static WeakHashMap<MethodVector,RVMMethod[]> |
popularMVs |
Constructor and Description |
---|
MethodVector() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addElement(RVMMethod item) |
void |
addUniqueElement(RVMMethod item)
Adds an item if it is not already in the vector.
|
private void |
adjustLength(int newLength) |
(package private) RVMMethod |
elementAt(int index) |
boolean |
equals(Object obj) |
RVMMethod[] |
finish() |
int |
hashCode() |
(package private) void |
setElementAt(RVMMethod item,
int index) |
int |
size() |
private int cnt
private static final WeakHashMap<MethodVector,RVMMethod[]> popularMVs
MethodVector()
void addElement(RVMMethod item)
public void addUniqueElement(RVMMethod item)
item
- method to be addedvoid setElementAt(RVMMethod item, int index)
public int size()
public RVMMethod[] finish()
v1
and v2
will lead to the same array being returned for both v1
and v2
when this method is called.private void adjustLength(int newLength)