| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.backends.pluggable; |
| | | |
| | |
| | | /** |
| | | * Iterator for a set of Entry IDs. It must return values in order of ID. |
| | | */ |
| | | public class IDSetIterator implements Iterator<EntryID> |
| | | class IDSetIterator implements Iterator<EntryID> |
| | | { |
| | | /** |
| | | * An array of ID values in order of ID. |
| | | */ |
| | | private long[] entryIDList; |
| | | private final long[] entryIDList; |
| | | |
| | | /** |
| | | * Current position of the iterator as an index into the array of IDs. |
| | |
| | | * Create a new iterator for a given array of entry IDs. |
| | | * @param entryIDList An array of IDs in order or ID. |
| | | */ |
| | | public IDSetIterator(long[] entryIDList) |
| | | IDSetIterator(long[] entryIDList) |
| | | { |
| | | this.entryIDList = entryIDList; |
| | | } |
| | |
| | | * @param begin The entry ID of the first entry that should be returned, or |
| | | * {@code null} if it should start at the beginning of the list. |
| | | */ |
| | | public IDSetIterator(long[] entryIDList, EntryID begin) |
| | | IDSetIterator(long[] entryIDList, EntryID begin) |
| | | { |
| | | this.entryIDList = entryIDList; |
| | | |