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) { 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) { if (fromIndex < 0 || toIndex > size()) throw new IndexOutOfBoundsException(); return new BTreeDescRange<V>(new BTreeRange<V>(tree, comparator, upperBound - (toIndex - 1), upperBound - fromIndex)); }
public <T> T[] toArray(T[] a, int offset) { a = super.toArray(a, offset); int count = size(); int flip = count / 2; for (int i = 0 ; i < flip ; i++) { int j = count - (i + 1); T t = a[i + offset]; a[i + offset] = a[j + offset]; a[j + offset] = t; } return a; } }
public <T> T[] toArray(T[] a, int offset) { a = super.toArray(a, offset); int count = size(); int flip = count / 2; for (int i = 0 ; i < flip ; i++) { int j = count - (i + 1); T t = a[i + offset]; a[i + offset] = a[j + offset]; a[j + offset] = t; } return a; } }
public <T> T[] toArray(T[] a, int offset) { a = super.toArray(a, offset); int count = size(); int flip = count / 2; for (int i = 0 ; i < flip ; i++) { int j = count - (i + 1); T t = a[i + offset]; a[i + offset] = a[j + offset]; a[j + offset] = t; } return a; } }
public <T> T[] toArray(T[] a, int offset) { a = super.toArray(a, offset); int count = size(); int flip = count / 2; for (int i = 0 ; i < flip ; i++) { int j = count - (i + 1); T t = a[i + offset]; a[i + offset] = a[j + offset]; a[j + offset] = t; } return a; } }
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)); }