org.jikesrvm.classloader
Class FieldVector

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

final class FieldVector
extends Object

Lightweight implementation of a vector of Fields.


Field Summary
private  RVMField[] array
           
private  int cnt
           
private static RVMField[] empty
           
private static WeakHashMap<FieldVector,RVMField[]> popularFVs
           
 
Constructor Summary
FieldVector()
           
 
Method Summary
(package private)  void addElement(RVMField item)
           
 void addUniqueElement(RVMField item)
           
private  void adjustLength(int newLength)
           
(package private)  RVMField elementAt(int index)
           
 boolean equals(Object obj)
           
 RVMField[] finish()
           
 int hashCode()
           
(package private)  void setElementAt(RVMField 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 RVMField[] array

cnt

private int cnt

empty

private static final RVMField[] empty

popularFVs

private static final WeakHashMap<FieldVector,RVMField[]> popularFVs
Constructor Detail

FieldVector

public FieldVector()
Method Detail

addElement

void addElement(RVMField item)

addUniqueElement

public void addUniqueElement(RVMField item)

elementAt

RVMField elementAt(int index)

setElementAt

void setElementAt(RVMField item,
                  int index)

size

public int size()

finish

public RVMField[] 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)