Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.basex.query.iter
Class RangeIter

    java.lang.Object
      org.basex.query.iter.Iter
          org.basex.query.iter.RangeIter

All Implemented Interfaces:
  java.lang.Iterable<Item>

    public final class RangeIter

extends Iter

Range iterator.

Author:
  Workgroup DBIS, University of Konstanz 2005-09, ISC License, Christian Gruen

Field Summary

Fields inherited from class org.basex.query.iter.Iter
`EMPTY`

Constructor Summary
`RangeIter(long mn, long mx)` Constructor.

Method Summary
`Item` | `get(long i)` Returns the specified item.
`Item` | `next()` Returns the next item or null if no other items are found.
`boolean` | `reverse()` Reverses the iterator and returns true.
`int` | `size()` Returns the number of entries.
`java.lang.String` | `toString()`

Methods inherited from class org.basex.query.iter.Iter
`finish, iterator, reset`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### RangeIter

    public RangeIter(long mn,
                     long mx)

  Constructor.

  Parameters:
    `mn` - minimum value
    `mx` - minimum value

Method Detail

### next

    public Item next()

  Description copied from class: `Iter`
  Returns the next item or null if no other items are found.

  Specified by:
    `next` in class `Iter`
  Returns:
    resulting item

### size

    public int size()

  Description copied from class: `Iter`
  Returns the number of entries. Note: -1 is returned if the number cannot be retrieved, so the returned value has to be checked. If this method is implemented, `Iter.get(long)` has to be implemented as well.

  Overrides:
    `size` in class `Iter`
  Returns:
    number of entries

### get

    public Item get(long i)

  Description copied from class: `Iter`
  Returns the specified item. Note: null is returned if the item cannot be retrieved, so the returned value has to be checked.

  Overrides:
    `get` in class `Iter`
  Parameters:
    `i` - value offset
  Returns:
    specified item

### reverse

    public boolean reverse()

  Description copied from class: `Iter`
  Reverses the iterator and returns true. Note: false is returned if the iterator cannot be reset, so the returned value has to be checked.

  Overrides:
    `reverse` in class `Iter`
  Returns:
    true if operator could be reversed

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD