@Override public LockResult last() throws IOException { mKey = null; return mSource.last(); }
@Override public LockResult last() throws IOException { mKey = null; return mSource.last(); }
/** * {@inheritDoc} */ @Override public LockResult last() throws IOException { return source.last(); }
/** * {@inheritDoc} */ @Override public LockResult last() throws IOException { return source.last(); }
@Override public LockResult last() throws IOException { mKey = null; return mSource.last(); }
@Override public LockResult first() throws IOException { return mSource.last(); }
/** * {@inheritDoc} */ @Override public LockResult last() throws IOException { return source.last(); }
@Override public LockResult first() throws IOException { return mSource.last(); }
@Override public LockResult first() throws IOException { return mSource.last(); }
private LockResult toLast() throws IOException { BoundedView view = mView; byte[] end = view.mEnd; Cursor source = mSource; if (end == null) { return mSource.last(); } else if ((view.mMode & END_EXCLUSIVE) == 0) { return source.findLe(end); } else { return source.findLt(end); } }
private LockResult toLast() throws IOException { BoundedView view = mView; byte[] end = view.mEnd; Cursor source = mSource; if (end == null) { return mSource.last(); } else if ((view.mMode & END_EXCLUSIVE) == 0) { return source.findLe(end); } else { return source.findLt(end); } }
private static void initializeCursorPosition(final Cursor cursor, final Order order) throws IOException { switch (order) { case ASCENDING: cursor.first(); break; case DESCENDING: cursor.last(); break; default: throw new UnknownEnumLiteralException(order); } }
private static void initializeCursorPosition(final Cursor cursor, final Order order) throws IOException { switch (order) { case ASCENDING: cursor.first(); break; case DESCENDING: cursor.last(); break; default: throw new UnknownEnumLiteralException(order); } }
private LockResult toLast() throws IOException { LockResult result; BoundedView view = mView; byte[] end = view.mEnd; Cursor source = mSource; if (end == null) { result = mSource.last(); } else if ((view.mMode & END_EXCLUSIVE) == 0) { result = source.findLe(end); } else { result = source.findLt(end); } mOutOfBounds = false; return result; }
@Override public LockResult last() throws IOException { LockResult result; try { result = mSource.last(); } catch (LockFailureException e) { throw transformCurrent(e); } result = transformCurrent(result); return result == null ? previous() : result; }
@Override public LockResult last() throws IOException { LockResult result; try { result = mSource.last(); } catch (LockFailureException e) { throw transformCurrent(e); } result = transformCurrent(result); return result == null ? previous() : result; }
@Override public LockResult last() throws IOException { LockResult result; try { result = mSource.last(); } catch (LockFailureException e) { throw transformCurrent(e); } result = transformCurrent(result); return result == null ? previous() : result; }