org.jikesrvm.classloader
Class TypeReferenceVector
java.lang.Object
org.jikesrvm.classloader.TypeReferenceVector
final class TypeReferenceVector
- extends Object
Lightweight implementation of a vector of Fields.
array
private TypeReference[] array
cnt
private int cnt
empty
private static final TypeReference[] empty
popularTRVs
private static final WeakHashMap<TypeReferenceVector,TypeReference[]> popularTRVs
TypeReferenceVector
public TypeReferenceVector()
addElement
void addElement(TypeReference item)
addUniqueElement
public void addUniqueElement(TypeReference item)
elementAt
TypeReference elementAt(int index)
setElementAt
void setElementAt(TypeReference item,
int index)
size
public int size()
finish
public TypeReference[] finish()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
adjustLength
private void adjustLength(int newLength)