com.ibm.dtfj.analyzer.j2se.wrappers
Class VectorWrapper.Data

java.lang.Object
  extended by com.ibm.dtfj.analyzer.j2se.wrappers.VectorWrapper.Data
Enclosing class:
VectorWrapper

public class VectorWrapper.Data
extends java.lang.Object

An inner class used to represent the data contained in the original Vector. This object implements several methods similar to those of a real Vector, but not all and not exactly the same. In particular, every key and and every value from the original Vector is represented by a ObjectWrapper object here, not the original Object.


Method Summary
 ObjectWrapper elementAt(int index)
          Lookup one entry from the original Vector
 java.util.Iterator iterator()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

size

public int size()
Returns:
the number of entries in the original Vector

elementAt

public ObjectWrapper elementAt(int index)
Lookup one entry from the original Vector

Parameters:
index - the index of the desired entry in the original Vector
Returns:
a ObjectWrapper that represents the value associated with the index in the original Vector

iterator

public java.util.Iterator iterator()
Returns:
an iterator of ObjectWrappers for all the elements in the original vector


© Copyright IBM Corp. 2007, 2008 All Rights Reserved. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.