001: package java.util;
002:
003: import java.io.IOException;
004: import java.io.ObjectInputStream;
005: import java.io.ObjectOutputStream;
006: import java.io.Serializable;
007:
008: public class Hashtable extends Dictionary implements Map, Cloneable,
009: Serializable {
010: static final int KEYS = 0, VALUES = 1, ENTRIES = 2;
011: transient HashEntry[] buckets;
012: transient int modCount;
013: transient int size;
014:
015: private static final class HashEntry extends
016: AbstractMap.BasicMapEntry {
017: HashEntry next;
018:
019: HashEntry(Object key, Object value) {
020: }
021:
022: public Object setValue(Object newVal) {
023: }
024: }
025:
026: public Hashtable() {
027: }
028:
029: public Hashtable(Map m) {
030: }
031:
032: public Hashtable(int initialCapacity) {
033: }
034:
035: public Hashtable(int initialCapacity, float loadFactor) {
036: }
037:
038: public synchronized int size() {
039: }
040:
041: public synchronized boolean isEmpty() {
042: }
043:
044: public Enumeration keys() {
045: }
046:
047: public Enumeration elements() {
048: }
049:
050: public synchronized boolean contains(Object value) {
051: }
052:
053: public boolean containsValue(Object value) {
054: }
055:
056: public synchronized boolean containsKey(Object key) {
057: }
058:
059: public synchronized Object get(Object key) {
060: }
061:
062: public synchronized Object put(Object key, Object value) {
063: }
064:
065: public synchronized Object remove(Object key) {
066: }
067:
068: public synchronized void putAll(Map m) {
069: }
070:
071: public synchronized void clear() {
072: }
073:
074: public synchronized Object clone() {
075: }
076:
077: public synchronized String toString() {
078: }
079:
080: public Set keySet() {
081: }
082:
083: public Collection values() {
084: }
085:
086: public Set entrySet() {
087: }
088:
089: public boolean equals(Object o) {
090: }
091:
092: public synchronized int hashCode() {
093: }
094:
095: private int hash(Object key) {
096: }
097:
098: HashEntry getEntry(Object o) {
099: }
100:
101: void putAllInternal(Map m) {
102: }
103:
104: protected void rehash() {
105: }
106:
107: private synchronized void writeObject(ObjectOutputStream s)
108: throws IOException {
109: }
110:
111: private void readObject(ObjectInputStream s) throws IOException,
112: ClassNotFoundException {
113: }
114:
115: private final class HashIterator implements Iterator {
116: final int type;
117: int knownMod = modCount;
118: int count = size;
119: int idx = buckets.length;
120: HashEntry last;
121: HashEntry next;
122:
123: HashIterator(int type) {
124: }
125:
126: public boolean hasNext() {
127: }
128:
129: public Object next() {
130: }
131:
132: public void remove() {
133: }
134: }
135:
136: private final class Enumerator implements Enumeration {
137: final int type;
138: int count = size;
139: int idx = buckets.length;
140: HashEntry next;
141:
142: Enumerator(int type) {
143: }
144:
145: public boolean hasMoreElements() {
146: }
147:
148: public Object nextElement() {
149: }
150: }
151: }
|