up: I     index Zimbu documentation

INTERFACE I.BidiMutateIterator<Titem> EXTENDS I.MutateIterator @public

summary

     

Interface for an iterator that can go in both directions and can modify the container. The methods that can normally only be called after $next() will also work after $previous().

Inherited from I.MutateIterator:
$setSupported() bool @public  Returns TRUE when $set() is supported.
$set(item) status @public  Replaces the item that was previously obtained with $next()
$removeSupported() bool @public  Returns TRUE when $remove() is supported.
$remove() status @public  Removes the item that was previously obtained with $next()
$addSupported() bool @public  Returns TRUE when $add() is supported.
$add(item) status @public  Adds item after the one that was previously obtained with $next() or $previous().
$insertSupported() bool @public  Returns TRUE when $insert() is supported.
$insert(item) status @public  Inserts item before the one that was previously obtained with $next() or $previous()
 
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.
 
Included from I.BidiIterator:
$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.
 

members (alphabetically)

     

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