1 20 package org.enhydra.barracuda.core.comp; 21 22 import java.util.*; 23 24 25 32 public class DefaultItemMap implements ItemMap { 33 34 protected Object key = null; 35 protected Object value = null; 36 37 44 public DefaultItemMap(int ikey, Object ivalue) { 45 key = new Integer (ikey); 46 value = ivalue; 47 } 48 49 56 public DefaultItemMap(Object ikey, Object ivalue) { 57 key = ikey; 58 value = ivalue; 59 } 60 61 64 public Object getKey() { 65 return key; 66 } 67 68 71 public Object getValue() { 72 return value; 73 } 74 75 79 public Object setValue(Object ivalue) { 80 value = ivalue; 81 return value; 82 } 83 84 87 public String toString() { 88 return (value!=null ? value.toString() : "null"); } 92 93 } | Popular Tags |