KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > collections > BaseIterator


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2000,2006 Oracle. All rights reserved.
5  *
6  * $Id: BaseIterator.java,v 1.3 2006/10/30 21:14:10 bostic Exp $
7  */

8
9 package com.sleepycat.collections;
10
11 import java.util.ListIterator JavaDoc;
12
13 /**
14  * Common interface for BlockIterator and StoredIterator.
15  */

16 interface BaseIterator extends ListIterator JavaDoc {
17
18     /**
19      * Duplicate a cursor. Called by StoredCollections.iterator.
20      */

21     ListIterator JavaDoc dup();
22
23     /**
24      * Returns whether the given data is the current iterator data. Called by
25      * StoredMapEntry.setValue.
26      */

27     boolean isCurrentData(Object JavaDoc currentData);
28
29     /**
30      * Initializes a list iterator at the given index. Called by
31      * StoredList.iterator(int).
32      */

33     boolean moveToIndex(int index);
34 }
35
Popular Tags