public boolean contains(Key key){
  if (key == null)   throw new NullPointerException("called contains() with a null key");
  return set.contains(key);
}

public boolean contains ( Key key ) { if ( key == null ) throw new NullPointerException ( "called contains() with a null key" ) ; return set . contains ( key ) ; }
returns true if this set contains the given key .
