Subversion Repositories programming

Rev

Rev 6 | Rev 100 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

//Ira Snyder
//CS241 Section 01
//Project #1
//Due: 10-22-2004
//NOTE: Helped Allen Oliver with his project also, since mine was
//      done by the time he started his.

public interface Map {
  public Object get(Object key);
  // RETURN: value;
  // POST: if value!=null, then (key,value) is in this map;
  //       if value==null, then no record in this map has the given key;
  public Object put(Object key, Object value);
  // RETURN: oldValue;
  // POST: if oldValue==null, then (key,value) is in this map;
  //       if oldValue!=null, then (key,oldValue) was in this map;
  public Object remove(Object key);
  // RETURN: oldValue;
  // POST: if oldValue==null, no record in this map has the given key;
  //       if oldValue!=null, then (key,oldValue) was in this map;
  public int size();
  // RETURN: n;
  // POST: this map contains n records;
}