• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/db-4.7.25.NC/java/src/com/sleepycat/collections/
1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2000,2008 Oracle.  All rights reserved.
5 *
6 * $Id: BaseIterator.java,v 12.5 2008/01/08 20:58:36 bostic Exp $
7 */
8
9package com.sleepycat.collections;
10
11import java.util.ListIterator;
12
13/**
14 * Common interface for BlockIterator and StoredIterator.
15 */
16interface BaseIterator extends ListIterator {
17
18    /**
19     * Duplicate a cursor.  Called by StoredCollections.iterator.
20     */
21    ListIterator dup();
22
23    /**
24     * Returns whether the given data is the current iterator data.  Called by
25     * StoredMapEntry.setValue.
26     */
27    boolean isCurrentData(Object 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