• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/db-4.8.30/java/src/com/sleepycat/collections/
1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2000-2009 Oracle.  All rights reserved.
5 *
6 * $Id$
7 */
8
9package com.sleepycat.collections;
10
11import java.util.ListIterator;
12
13/**
14 * Common interface for BlockIterator and StoredIterator.
15 */
16interface BaseIterator<E> extends ListIterator<E> {
17
18    /**
19     * @hidden
20     * Duplicate a cursor.  Called by StoredCollections.iterator.
21     */
22    ListIterator<E> dup();
23
24    /**
25     * @hidden
26     * Returns whether the given data is the current iterator data.  Called by
27     * StoredMapEntry.setValue.
28     */
29    boolean isCurrentData(Object currentData);
30
31    /**
32     * @hidden
33     * Initializes a list iterator at the given index.  Called by
34     * StoredList.iterator(int).
35     */
36    boolean moveToIndex(int index);
37}
38