Lines Matching defs:key
34 * Private storage mechanism for Action key-value pairs.
36 * key-value pairs. As it grows larger it is scaled
53 * The data is saved as an integer indicating how many key/value
54 * pairs are being archived, followed by the the key/value pairs. If
73 Object key = keys[counter];
76 if ( (key instanceof Serializable
77 && table.get(key) instanceof Serializable)
80 (key instanceof ClientPropertyKey
81 && ((ClientPropertyKey)key).getReportValueNotSerializable())) {
88 // Write ou the Serializable key/value pairs.
91 for (Object key : keys) {
92 if (key != null) {
93 s.writeObject(key);
94 s.writeObject(table.get(key));
106 * Put the key-value pair into storage
108 public void put(Object key, Object value){
110 table = new Object[] {key, value};
114 if (containsKey(key)) {
117 if (tmp[i].equals(key)) {
128 tmp[i] = key;
136 ((Hashtable)table).put(key, value);
142 * Gets the value for key
144 public Object get(Object key) {
150 if (array[i].equals(key)) {
156 value = ((Hashtable)table).get(key);
178 * Returns true if we have a value for the key
180 public boolean containsKey(Object key) {
186 if (array[i].equals(key)) {
192 contains = ((Hashtable)table).containsKey(key);
199 * Removes the key and its value
202 public Object remove(Object key){
204 if (key==null) {
209 // Is key on the list?
213 if (array[i].equals(key)) {
235 value = ((Hashtable)table).remove(key);
307 * an array of alternating key-value pairs.