1 21 package oracle.toplink.essentials.mappings; 23 24 import java.util.*; 25 26 33 public class Association implements Map.Entry { 34 protected Object key; 35 protected Object value; 36 37 40 public Association() { 41 super(); 42 } 43 44 48 public Association(Object key, Object value) { 49 this.key = key; 50 this.value = value; 51 } 52 53 57 public Object getKey() { 58 return key; 59 } 60 61 65 public Object getValue() { 66 return value; 67 } 68 69 73 public void setKey(Object key) { 74 this.key = key; 75 } 76 77 81 public Object setValue(Object value) { 82 Object oldValue = this.value; 83 this.value = value; 84 return oldValue; 85 } 86 } 87 | Popular Tags |