Subversion Repositories programming

Rev

Rev 100 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
75 irasnyd 1
//Ira Snyder
2
//CS241 Section 01
3
//Project #1
4
//Due: 10-22-2004
5
//NOTE: Helped Allen Oliver with his project also, since mine was
6
//      done by the time he started his.
108 ira 7
// License: Public Domain (added 07-11-2005)
75 irasnyd 8
 
6 irasnyd 9
public interface Map {
10
  public Object get(Object key);
11
  // RETURN: value;
12
  // POST: if value!=null, then (key,value) is in this map;
13
  //       if value==null, then no record in this map has the given key;
14
  public Object put(Object key, Object value);
15
  // RETURN: oldValue;
16
  // POST: if oldValue==null, then (key,value) is in this map;
17
  //       if oldValue!=null, then (key,oldValue) was in this map;
18
  public Object remove(Object key);
19
  // RETURN: oldValue;
20
  // POST: if oldValue==null, no record in this map has the given key;
21
  //       if oldValue!=null, then (key,oldValue) was in this map;
22
  public int size();
23
  // RETURN: n;
24
  // POST: this map contains n records;
25
}
26