org.jikesrvm.classloader
Class TypeReferenceVector

java.lang.Object
  extended by org.jikesrvm.classloader.TypeReferenceVector

final class TypeReferenceVector
extends Object

Lightweight implementation of a vector of Fields.


Field Summary
private  TypeReference[] array
           
private  int cnt
           
private static TypeReference[] empty
           
private static WeakHashMap<TypeReferenceVector,TypeReference[]> popularTRVs
           
 
Constructor Summary
TypeReferenceVector()
           
 
Method Summary
(package private)  void addElement(TypeReference item)
           
 void addUniqueElement(TypeReference item)
           
private  void adjustLength(int newLength)
           
(package private)  TypeReference elementAt(int index)
           
 boolean equals(Object obj)
           
 TypeReference[] finish()
           
 int hashCode()
           
(package private)  void setElementAt(TypeReference item, int index)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

array

private TypeReference[] array

cnt

private int cnt

empty

private static final TypeReference[] empty

popularTRVs

private static final WeakHashMap<TypeReferenceVector,TypeReference[]> popularTRVs
Constructor Detail

TypeReferenceVector

public TypeReferenceVector()
Method Detail

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)