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: import java.io.Serializable;
19:
20: /**
21: * Map using reference equality on keys. <a
22: * href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/IdentityHashMap.html">[Sun
23: * docs]</a>
24: *
25: * @param <K> key type
26: * @param <V> value type
27: */
28: public class IdentityHashMap<K, V> extends AbstractMap<K, V> implements
29: Map<K, V>, Cloneable, Serializable {
30:
31: public IdentityHashMap() {
32: this (10);
33: }
34:
35: public IdentityHashMap(int expectedMaxSize) {
36: // TODO(jat): implement
37: throw new UnsupportedOperationException(
38: "IdentityHashMap not implemented");
39: }
40:
41: public IdentityHashMap(Map<? extends K, ? extends V> map) {
42: this (map.size());
43: putAll(map);
44: }
45:
46: @Override
47: public Set<java.util.Map.Entry<K, V>> entrySet() {
48: // TODO(jat): implement
49: return null;
50: }
51:
52: @Override
53: public V get(Object key) {
54: // TODO(jat): implement
55: return null;
56: }
57:
58: @Override
59: public V put(K key, V value) {
60: // TODO(jat): implement
61: return null;
62: }
63:
64: @Override
65: public V remove(Object key) {
66: // TODO(jat): implement
67: return null;
68: }
69:
70: }
|