public boolean remove(Object o) { return m.remove(o) != null; } public void clear() { m.clear(); }
public boolean remove(Object o) { return m.remove(o) != null; } public void clear() { m.clear(); }
public boolean remove(Object o) { return m.remove(o) != null; } public void clear() { m.clear(); }
/** * Removes the specified element from this set if it is present. * More formally, removes an element <tt>e</tt> such that * <tt>o.equals(e)</tt>, if this set contains such an element. * Returns <tt>true</tt> if this set contained the element (or * equivalently, if this set changed as a result of the call). * (This set will not contain the element once the call returns.) * * @param o object to be removed from this set, if present * @return <tt>true</tt> if this set contained the specified element * @throws ClassCastException if <tt>o</tt> cannot be compared * with the elements currently in this set * @throws NullPointerException if the specified element is null */ public boolean remove(Object o) { return m.remove(o, Boolean.TRUE); }
/** * Removes the specified element from this set if it is present. * More formally, removes an element <tt>e</tt> such that * <tt>o.equals(e)</tt>, if this set contains such an element. * Returns <tt>true</tt> if this set contained the element (or * equivalently, if this set changed as a result of the call). * (This set will not contain the element once the call returns.) * * @param o object to be removed from this set, if present * @return <tt>true</tt> if this set contained the specified element * @throws ClassCastException if <tt>o</tt> cannot be compared * with the elements currently in this set * @throws NullPointerException if the specified element is null */ public boolean remove(Object o) { return m.remove(o, Boolean.TRUE); }
/** * Removes the specified element from this set if it is present. * More formally, removes an element <tt>e</tt> such that * <tt>o.equals(e)</tt>, if this set contains such an element. * Returns <tt>true</tt> if this set contained the element (or * equivalently, if this set changed as a result of the call). * (This set will not contain the element once the call returns.) * * @param o object to be removed from this set, if present * @return <tt>true</tt> if this set contained the specified element * @throws ClassCastException if <tt>o</tt> cannot be compared * with the elements currently in this set * @throws NullPointerException if the specified element is null */ public boolean remove(Object o) { return m.remove(o, Boolean.TRUE); }
public boolean remove(Object o) { if (!(o instanceof Map.Entry)) return false; Map.Entry e = (Map.Entry)o; return m.remove(e.getKey(), e.getValue()); } public boolean isEmpty() {
public boolean remove(Object o) { if (!(o instanceof Map.Entry)) return false; Map.Entry e = (Map.Entry)o; return m.remove(e.getKey(), e.getValue()); } public boolean isEmpty() {
public boolean remove(Object o) { if (!(o instanceof Map.Entry)) return false; Map.Entry e = (Map.Entry)o; return m.remove(e.getKey(), e.getValue()); } public boolean isEmpty() {