/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if the specified element is null */ public Object ceiling(Object e) { return m.ceilingKey(e); }
/** * Removes all of the elements from this set. */ public void clear() { m.clear(); }
public Comparator comparator() { return m.comparator(); }
public NavigableSet descendingSet() { return new ConcurrentSkipListSet( (ConcurrentNavigableMap)m.descendingMap()); } }
/** * @throws NoSuchElementException {@inheritDoc} */ public Object first() { return m.firstKey(); }
/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if the specified element is null */ public Object floor(Object e) { return m.floorKey(e); }
/** * Returns <tt>true</tt> if this set contains the specified element. * More formally, returns <tt>true</tt> if and only if this set * contains an element <tt>e</tt> such that <tt>o.equals(e)</tt>. * * @param o object to be checked for containment in this set * @return <tt>true</tt> if this set contains the specified element * @throws ClassCastException if the specified element cannot be * compared with the elements currently in this set * @throws NullPointerException if the specified element is null */ public boolean contains(Object o) { return m.containsKey(o); }
/** * Returns an iterator over the elements in this set in descending order. * * @return an iterator over the elements in this set in descending order */ public Iterator descendingIterator() { return m.descendingKeySet().iterator(); }
public boolean contains(Object o) { if (!(o instanceof Map.Entry)) return false; Map.Entry e = (Map.Entry)o; Object v = m.get(e.getKey()); return v != null && v.equals(e.getValue()); } public boolean remove(Object o) {
public boolean contains(Object o) { return m.containsValue(o); } public void clear() {
public NavigableSet descendingSet() { return new ConcurrentSkipListSet( (ConcurrentNavigableMap)m.descendingMap()); } }
/** * @throws NoSuchElementException {@inheritDoc} */ public Object first() { return m.firstKey(); }
/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if the specified element is null */ public Object floor(Object e) { return m.floorKey(e); }
/** * Returns <tt>true</tt> if this set contains the specified element. * More formally, returns <tt>true</tt> if and only if this set * contains an element <tt>e</tt> such that <tt>o.equals(e)</tt>. * * @param o object to be checked for containment in this set * @return <tt>true</tt> if this set contains the specified element * @throws ClassCastException if the specified element cannot be * compared with the elements currently in this set * @throws NullPointerException if the specified element is null */ public boolean contains(Object o) { return m.containsKey(o); }
/** * Returns an iterator over the elements in this set in descending order. * * @return an iterator over the elements in this set in descending order */ public Iterator descendingIterator() { return m.descendingKeySet().iterator(); }
public boolean contains(Object o) { if (!(o instanceof Map.Entry)) return false; Map.Entry e = (Map.Entry)o; Object v = m.get(e.getKey()); return v != null && v.equals(e.getValue()); } public boolean remove(Object o) {
public boolean contains(Object o) { return m.containsValue(o); } public void clear() {
/** * Removes all of the elements from this set. */ public void clear() { m.clear(); }
/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if the specified element is null */ public Object ceiling(Object e) { return m.ceilingKey(e); }
public NavigableSet descendingSet() { return new ConcurrentSkipListSet( (ConcurrentNavigableMap)m.descendingMap()); } }