public BTreeSet<V> subList(int fromIndex, int toIndex) { if (fromIndex < 0 || toIndex > size()) throw new IndexOutOfBoundsException(); return new BTreeDescRange<V>(new BTreeRange<V>(tree, comparator, upperBound - (toIndex - 1), upperBound - fromIndex)); }
public BTreeSet<V> subList(int fromIndex, int toIndex) { return new BTreeRange<V>(tree, comparator, fromIndex, toIndex - 1); }
public V floor(V v) { return super.ceiling(v); }
public V floor(V v) { return super.ceiling(v); }
public V lower(V v) { return super.higher(v); }
public BTreeSet<V> subList(int fromIndex, int toIndex) { return new BTreeRange<V>(tree, comparator, fromIndex, toIndex - 1); }
public BTreeSet<V> subList(int fromIndex, int toIndex) { return new BTreeRange<V>(tree, comparator, fromIndex, toIndex - 1); }
public V ceiling(V v) { return super.floor(v); }
public V ceiling(V v) { return super.floor(v); }
public V lower(V v) { return super.higher(v); }
public V floor(V v) { return super.ceiling(v); }
public BTreeSet<V> subList(int fromIndex, int toIndex) { return new BTreeRange<V>(tree, comparator, fromIndex, toIndex - 1); }
public V ceiling(V v) { return super.floor(v); }
public V ceiling(V v) { return super.floor(v); }
@Override public BTreeSet<V> tailSet(V fromElement, boolean inclusive) { return new BTreeRange<>(this, new BTreeRange<>(tree, comparator, fromElement, inclusive, null, true)); }
@Override public BTreeSet<V> subSet(V fromElement, boolean fromInclusive, V toElement, boolean toInclusive) { return new BTreeRange<>(this, new BTreeRange<>(tree, comparator, fromElement, fromInclusive, toElement, toInclusive)); }
@Override public BTreeSet<V> tailSet(V fromElement, boolean inclusive) { return new BTreeRange<>(tree, comparator, fromElement, inclusive, null, true); }
@Override public BTreeSet<V> descendingSet() { return new BTreeRange<>(this); }
@Override public BTreeSet<V> subSet(V fromElement, boolean fromInclusive, V toElement, boolean toInclusive) { return new BTreeRange<>(tree, comparator, fromElement, fromInclusive, toElement, toInclusive); }
@Override public NavigableSet<V> headSet(V toElement, boolean inclusive) { return new BTreeRange<>(this, new BTreeRange<>(tree, comparator, lowerBound, true, toElement, inclusive)); }