Subversion Repositories programming

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 irasnyd 1
public interface Map {
2
  public Object get(Object key);
3
  // RETURN: value;
4
  // POST: if value!=null, then (key,value) is in this map;
5
  //       if value==null, then no record in this map has the given key;
6
  public Object put(Object key, Object value);
7
  // RETURN: oldValue;
8
  // POST: if oldValue==null, then (key,value) is in this map;
9
  //       if oldValue!=null, then (key,oldValue) was in this map;
10
  public Object remove(Object key);
11
  // RETURN: oldValue;
12
  // POST: if oldValue==null, no record in this map has the given key;
13
  //       if oldValue!=null, then (key,oldValue) was in this map;
14
  public int size();
15
  // RETURN: n;
16
  // POST: this map contains n records;
17
}
18