KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > walker > MapEntry


1 /*
2  * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
3  * notice. All rights reserved.
4  */

5 package com.tc.object.walker;
6
7 import java.util.Map.Entry;
8
9 class MapEntry extends MemberValue {
10
11   private final Entry entry;
12   private final int index;
13
14   public MapEntry(Entry entry, int index) {
15     super(entry);
16     this.entry = entry;
17     this.index = index;
18   }
19
20   public Object JavaDoc getKey() {
21     return entry.getKey();
22   }
23
24   public Object JavaDoc getValue() {
25     return entry.getValue();
26   }
27
28   public int getIndex() {
29     return index;
30   }
31
32 }
33
Popular Tags