code: @Deprecated
    public CursorIterator<T> iterate(final Txn<T> txn, final IteratorType type) {
      if (SHOULD_CHECK) {
        requireNonNull(type);
      }
      final KeyRange<T> range = type == FORWARD ? all() : allBackward();
      return iterate(txn, range);
    }
docs: Iterate the database from the first/last item and forwards/backwards.
  
  @param txn  transaction handle (not null; not committed)
  @param type direction of iterator (not null)
  @return iterator (never null)
  @deprecated use iterate method with a {@link KeyRange} instead