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

Jean-Noel Rouvignac
29.34.2013 6c0d66a2e69f70fe98469fe1dc9a227447624ec8
MemberList.java:
Now implements Closeable.
1 files modified
13 ■■■■ changed files
opends/src/server/org/opends/server/types/MemberList.java 13 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/types/MemberList.java
@@ -23,9 +23,11 @@
 *
 *
 *      Copyright 2006-2008 Sun Microsystems, Inc.
 *      Portions Copyright 2013 ForgeRock AS
 */
package org.opends.server.types;
import java.io.Closeable;
/**
 * This class defines a mechanism that may be used to iterate over the
@@ -40,8 +42,9 @@
     mayInstantiate=false,
     mayExtend=true,
     mayInvoke=true)
public abstract class MemberList
public abstract class MemberList implements Closeable
{
  /**
   * Indicates whether the group contains any more members.
   *
@@ -66,14 +69,11 @@
         throws MembershipException
  {
    Entry e = nextMemberEntry();
    if (e == null)
    {
      return null;
    }
    else
    if (e != null)
    {
      return e.getDN();
    }
    return null;
  }
@@ -101,6 +101,7 @@
   * end has been reached, although it will not be necessary if the
   * call to {@code hasMoreMembers} returns {@code false}.
   */
  @Override
  public abstract void close();
}