up: I     index Zimbu documentation

INTERFACE I.BidiIterator<Titem> EXTENDS I.Iterator @public

summary

     

Interface for an iterator that can go in both directions.

$hasPrevious() bool @public  Returns TRUE when there is an item to fetch with previous().
$previous() Titem @public  Returns the previous item and advances backwards.
$peekPreviousSupported() bool @public  Returns TRUE when peekPrevious() is supported.
$peekPrevious() Titem @public  Returns the previous item without advancing.
 
Inherited from I.Iterator:
$hasNext() bool @public  Returns TRUE when there is another item to fetch.
$next() Titem @public  Returns the next item and advances.
$peekSupported() bool @public  Returns TRUE when peek() is supported.
$peek() Titem @public  Returns the next item without advancing.
 

members (alphabetically)

     

FUNC $hasPrevious() bool @abstract @public

     

Returns TRUE when there is an item to fetch with previous().

FUNC $peekPrevious() Titem @abstract @public

     

Returns the previous item without advancing.

When there is no previous item it throws an E.OutOfRange exception.

This is an optional method, when peeking is not possible it throws an E.Unsupported exception.

FUNC $peekPreviousSupported() bool @abstract @public

     

Returns TRUE when peekPrevious() is supported.

FUNC $previous() Titem @abstract @public

     

Returns the previous item and advances backwards.

When there is no previous item it throws an E.OutOfRange exception.

license

      Copyright 2013 Bram Moolenaar All Rights Reserved.

      Licensed under the Apache License, Version 2.0. See the LICENSE file or obtain a copy at: http://www.apache.org/licenses/LICENSE-2.0