01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.object.walker;
06:
07: import java.util.Map.Entry;
08:
09: 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 getKey() {
21: return entry.getKey();
22: }
23:
24: public Object getValue() {
25: return entry.getValue();
26: }
27:
28: public int getIndex() {
29: return index;
30: }
31:
32: }
|