com.ibm.dtfj.analyzer.j2se.wrappers.jre160
Class LinkedListWrapper.Data160

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

public class LinkedListWrapper.Data160
extends LinkedListWrapper.Data

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


Method Summary
 ObjectWrapper get(int index)
          Lookup one entry from the original LinkedList
 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()
Overrides:
size in class LinkedListWrapper.Data
Returns:
the number of entries in the original LinkedList

get

public ObjectWrapper get(int index)
Lookup one entry from the original LinkedList

Overrides:
get in class LinkedListWrapper.Data
Parameters:
index - the index of the desired entry in the original LinkedList
Returns:
a ObjectWrapper that represents the value associated with the index in the original LinkedList

iterator

public java.util.Iterator iterator()
Overrides:
iterator in class LinkedListWrapper.Data
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.