@Override public View viewLt(byte[] key) { return BoundedView.viewLt(this, key); }
@Override public View viewLt(byte[] key) { return BoundedView.viewLt(this, key); }
@Override public View viewLt(byte[] key) { return BoundedView.viewLt(this, key); }
@Override public View viewLt(byte[] key) { return BoundedView.viewLt(this, key); }
@Override public View viewLt(byte[] key) { return BoundedView.viewLt(this, key); }
@Override public View viewLt(byte[] key) { return BoundedView.viewLt(this, key); }
/** * Returns a sub-view, backed by this one, whose keys are less than the * given key. Ownership of the key instance is transferred, and so it must * not be modified after calling this method. * * <p>The returned view will throw a {@link ViewConstraintException} on an attempt to * insert a key outside its range. * * @throws UnsupportedOperationException if view is unordered * @throws NullPointerException if key is null */ public default View viewLt(byte[] key) { Ordering ordering = getOrdering(); if (ordering == Ordering.ASCENDING) { return BoundedView.viewLt(this, key); } else if (ordering == Ordering.DESCENDING) { return BoundedView.viewLt(viewReverse(), key).viewReverse(); } else { throw new UnsupportedOperationException("Unsupported ordering: " + ordering); } }
/** * Returns a sub-view, backed by this one, whose keys are less than the * given key. Ownership of the key instance is transferred, and so it must * not be modified after calling this method. * * <p>The returned view will throw a {@link ViewConstraintException} on an attempt to * insert a key outside its range. * * @throws UnsupportedOperationException if view is unordered * @throws NullPointerException if key is null */ public default View viewLt(byte[] key) { Ordering ordering = getOrdering(); if (ordering == Ordering.ASCENDING) { return BoundedView.viewLt(this, key); } else if (ordering == Ordering.DESCENDING) { return BoundedView.viewLt(viewReverse(), key).viewReverse(); } else { throw new UnsupportedOperationException("Unsupported ordering: " + ordering); } }
/** * Returns a sub-view, backed by this one, whose keys are less than the * given key. Ownership of the key instance is transferred, and so it must * not be modified after calling this method. * * <p>The returned view will throw a {@link ViewConstraintException} on an attempt to * insert a key outside its range. * * @throws UnsupportedOperationException if view is unordered * @throws NullPointerException if key is null */ public default View viewLt(byte[] key) { Ordering ordering = getOrdering(); if (ordering == Ordering.ASCENDING) { return BoundedView.viewLt(this, key); } else if (ordering == Ordering.DESCENDING) { return BoundedView.viewLt(viewReverse(), key).viewReverse(); } else { throw new UnsupportedOperationException("Unsupported ordering: " + ordering); } }