/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if {@code toElement} is null * @throws IllegalArgumentException {@inheritDoc} */ public NavigableSet headSet(Object toElement, boolean inclusive) { return new ConcurrentSkipListSet( (ConcurrentNavigableMap)m.headMap(toElement, inclusive)); }
public NavigableSet headSet(Object toElement, boolean inclusive) { return new ConcurrentSkipListSet( (ConcurrentNavigableMap)m.headMap(toElement, inclusive)); } public NavigableSet tailSet(Object fromElement, boolean inclusive) {
public NavigableSet tailSet(Object fromElement, boolean inclusive) { return new ConcurrentSkipListSet( (ConcurrentNavigableMap)m.tailMap(fromElement, inclusive)); } public SortedSet subSet(Object fromElement, Object toElement) {
/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if {@code toElement} is null * @throws IllegalArgumentException {@inheritDoc} */ public NavigableSet headSet(Object toElement, boolean inclusive) { return new ConcurrentSkipListSet( (ConcurrentNavigableMap)m.headMap(toElement, inclusive)); }
public NavigableSet headSet(Object toElement, boolean inclusive) { return new ConcurrentSkipListSet( (ConcurrentNavigableMap)m.headMap(toElement, inclusive)); } public NavigableSet tailSet(Object fromElement, boolean inclusive) {
/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if {@code fromElement} is null * @throws IllegalArgumentException {@inheritDoc} */ public NavigableSet tailSet(Object fromElement, boolean inclusive) { return new ConcurrentSkipListSet( (ConcurrentNavigableMap)m.tailMap(fromElement, inclusive)); }
public NavigableSet subSet(Object fromElement, boolean fromInclusive, Object toElement, boolean toInclusive) { return new ConcurrentSkipListSet ((ConcurrentNavigableMap) m.subMap(fromElement, fromInclusive, toElement, toInclusive)); } public NavigableSet headSet(Object toElement, boolean inclusive) {
public NavigableSet subSet(Object fromElement, boolean fromInclusive, Object toElement, boolean toInclusive) { return new ConcurrentSkipListSet ((ConcurrentNavigableMap) m.subMap(fromElement, fromInclusive, toElement, toInclusive)); } public NavigableSet headSet(Object toElement, boolean inclusive) {
public NavigableSet tailSet(Object fromElement, boolean inclusive) { return new ConcurrentSkipListSet( (ConcurrentNavigableMap)m.tailMap(fromElement, inclusive)); } public SortedSet subSet(Object fromElement, Object toElement) {
/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if {@code fromElement} is null * @throws IllegalArgumentException {@inheritDoc} */ public NavigableSet tailSet(Object fromElement, boolean inclusive) { return new ConcurrentSkipListSet( (ConcurrentNavigableMap)m.tailMap(fromElement, inclusive)); }
public NavigableSet tailSet(Object fromElement, boolean inclusive) { return new ConcurrentSkipListSet( (ConcurrentNavigableMap)m.tailMap(fromElement, inclusive)); } public SortedSet subSet(Object fromElement, Object toElement) {
public NavigableSet descendingSet() { return new ConcurrentSkipListSet( (ConcurrentNavigableMap)m.descendingMap()); } }
/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if {@code toElement} is null * @throws IllegalArgumentException {@inheritDoc} */ public NavigableSet headSet(Object toElement, boolean inclusive) { return new ConcurrentSkipListSet( (ConcurrentNavigableMap)m.headMap(toElement, inclusive)); }
/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if {@code fromElement} is null * @throws IllegalArgumentException {@inheritDoc} */ public NavigableSet tailSet(Object fromElement, boolean inclusive) { return new ConcurrentSkipListSet( (ConcurrentNavigableMap)m.tailMap(fromElement, inclusive)); }
public NavigableSet descendingSet() { return new ConcurrentSkipListSet( (ConcurrentNavigableMap)m.descendingMap()); } }
public NavigableSet headSet(Object toElement, boolean inclusive) { return new ConcurrentSkipListSet( (ConcurrentNavigableMap)m.headMap(toElement, inclusive)); } public NavigableSet tailSet(Object fromElement, boolean inclusive) {
public NavigableSet descendingSet() { return new ConcurrentSkipListSet( (ConcurrentNavigableMap)m.descendingMap()); } }
public NavigableSet subSet(Object fromElement, boolean fromInclusive, Object toElement, boolean toInclusive) { return new ConcurrentSkipListSet ((ConcurrentNavigableMap) m.subMap(fromElement, fromInclusive, toElement, toInclusive)); } public NavigableSet headSet(Object toElement, boolean inclusive) {
/** * Returns a shallow copy of this <tt>ConcurrentSkipListSet</tt> * instance. (The elements themselves are not cloned.) * * @return a shallow copy of this set */ public Object clone() { if (this.getClass() != ConcurrentSkipListSet.class) { // can't change m, since it is final throw new UnsupportedOperationException("Can't clone subclasses"); } return new ConcurrentSkipListSet(new ConcurrentSkipListMap(this.m)); }
/** * Returns a shallow copy of this <tt>ConcurrentSkipListSet</tt> * instance. (The elements themselves are not cloned.) * * @return a shallow copy of this set */ public Object clone() { if (this.getClass() != ConcurrentSkipListSet.class) { // can't change m, since it is final throw new UnsupportedOperationException("Can't clone subclasses"); } return new ConcurrentSkipListSet(new ConcurrentSkipListMap(this.m)); }