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

Jean-Noël Rouvignac
25.07.2015 608ed59cdd7ac90f67a3e3515ab7d16387f503ce
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryIDSet.java
@@ -726,6 +726,23 @@
  }
  /**
   * Returns this {@link EntryIDSet} as a long array holding all the entryIDs.
   *
   * @return a new long array containing all the entryIDs included in this {@link EntryIDSet}.
   *         The long array will be empty if the {@link EntryIDSet} is defined and its size is zero,
   *         and it will be {@code null} if this {@link EntryIDSet} is undefined.
   */
  public long[] toLongArray()
  {
    if (!isDefined())
    {
      return null;
    }
    final long[] entryIDs = concreteImpl.getIDs();
    return Arrays.copyOf(entryIDs, entryIDs.length);
  }
  /**
   * Determine whether this set of IDs is defined.
   *
   * @return true if the set of IDs is defined.