mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Yannick Lecaillez
31.02.2015 540ea316e77eb38f09a74b07365964c2a1161d8e
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/Cursor.java
@@ -28,12 +28,13 @@
import java.io.Closeable;
import org.forgerock.opendj.ldap.ByteSequence;
import org.forgerock.opendj.ldap.ByteString;
/**
 * Cursor that iterates through records in a tree.
 * @param <K> Type of the record's key
 * @param <V> Type of the record's value
 */
public interface Cursor extends Closeable
public interface Cursor<K,V> extends Closeable
{
  /**
   * Positions the cursor to the provided key if it exists in the tree.
@@ -96,7 +97,7 @@
   * @return the current record's key,
   *         or {@code null} if this cursor is not positioned on any record.
   */
  ByteString getKey();
  K getKey();
  /**
   * Returns the value of the record on which this cursor is currently positioned.
@@ -104,7 +105,7 @@
   * @return the current record's value,
   *         or {@code null} if this cursor is not positioned on any record.
   */
  ByteString getValue();
  V getValue();
  /** {@inheritDoc} */
  @Override