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

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

public class HashMapWrapper.Data160
extends HashMapWrapper.Data

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


Method Summary
 java.util.Set entrySet()
           
 ObjectWrapper get(ObjectWrapper key)
          Lookup one entry from the original HashMap
 java.util.Set keySet()
           
 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 HashMapWrapper.Data
Returns:
the number of entries in the original HashMap

get

public ObjectWrapper get(ObjectWrapper key)
Lookup one entry from the original HashMap

Overrides:
get in class HashMapWrapper.Data
Parameters:
key - a ObjectWrapper that represents a key from the original HashMap
Returns:
a ObjectWrapper that represents the value associated with the key in the original HashMap

keySet

public java.util.Set keySet()
Overrides:
keySet in class HashMapWrapper.Data
Returns:
a Set containing one ObjectWrapper for each of the keys in the original HashMap

entrySet

public java.util.Set entrySet()
Overrides:
entrySet in class HashMapWrapper.Data
Returns:
a Set containing one Map.entry for each of the entries in the original HashMap, which itself contains ObjectWrappers for the key and value


© 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.