01: /*
02: * Copyright 2007 Google Inc.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
05: * use this file except in compliance with the License. You may obtain a copy of
06: * the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13: * License for the specific language governing permissions and limitations under
14: * the License.
15: */
16: package java.util;
17:
18: /**
19: * Hash table implementation of the Map interface with predictable iteration
20: * order. <a
21: * href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/LinkedHashMap.html">[Sun
22: * docs]</a>
23: *
24: * @param <K> key type.
25: * @param <V> value type.
26: */
27: public class LinkedHashMap<K, V> extends HashMap<K, V> implements
28: Map<K, V>, Cloneable {
29:
30: public LinkedHashMap() {
31: this (11, 0.75f);
32: }
33:
34: /**
35: * @param ignored
36: */
37: public LinkedHashMap(int ignored) {
38: this (ignored, 0.75f);
39: }
40:
41: /**
42: * @param ignored
43: * @param alsoIgnored
44: */
45: public LinkedHashMap(int ignored, float alsoIgnored) {
46: super (ignored, alsoIgnored);
47: // TODO(jat): implement
48: throw new UnsupportedOperationException(
49: "LinkedHashMap not supported");
50: }
51:
52: /**
53: * @param toBeCopied
54: */
55: public LinkedHashMap(Map<? extends K, ? extends V> toBeCopied) {
56: this ();
57: putAll(toBeCopied);
58: }
59:
60: @Override
61: public void clear() {
62: // TODO(jat): implement
63: }
64:
65: @Override
66: public Object clone() {
67: // TODO(jat): implement
68: return null;
69: }
70:
71: @Override
72: public V put(K key, V value) {
73: // TODO(jat): implement
74: return null;
75: }
76:
77: @Override
78: public V remove(Object key) {
79: // TODO(jat): implement
80: return null;
81: }
82:
83: protected boolean removeEldestEntry(Map.Entry<K, V> eldest) {
84: // TODO(jat): implement
85: return false;
86: }
87:
88: }
|