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

Jean-Noel Rouvignac
28.54.2013 5267800c80843089c84753277c4ed4d1e97838b1
ChangeNumber.java:
Switched Boolean to boolean.
Fixed javadocs.
1 files modified
15 ■■■■■ changed files
opends/src/server/org/opends/server/replication/common/ChangeNumber.java 15 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/common/ChangeNumber.java
@@ -166,6 +166,7 @@
  /**
   * {@inheritDoc}
   */
  @Override
  public boolean equals(Object obj)
  {
    if (obj instanceof ChangeNumber)
@@ -228,6 +229,7 @@
   *
   * @return the string
   */
  @Override
  public String toString()
  {
    return String.format("%016x%04x%08x", timeStamp, serverId, seqnum);
@@ -338,10 +340,10 @@
  /**
   * check if the current Object is strictly older than ChangeNumber
   * given in parameter.
   * @param CN the Changenumber to compare with
   * @param CN the ChangeNumber to compare with
   * @return true if strictly older, false if younger or same
   */
  public Boolean older(ChangeNumber CN)
  public boolean older(ChangeNumber CN)
  {
    return compare(this, CN) < 0;
  }
@@ -349,17 +351,17 @@
  /**
   * check if the current Object is older than ChangeNumber
   * given in parameter.
   * @param CN the Changenumber to compare with
   * @param CN the ChangeNumber to compare with
   * @return true if older or equal, false if younger
   */
  public Boolean olderOrEqual(ChangeNumber CN)
  public boolean olderOrEqual(ChangeNumber CN)
  {
    return compare(this, CN) <= 0;
  }
  /**
   * Check if the current Object is newer than ChangeNumber.
   * @param CN the Changenumber to compare with
   * @param CN the ChangeNumber to compare with
   * @return true if newer
   */
  public boolean newerOrEquals(ChangeNumber CN)
@@ -369,7 +371,7 @@
  /**
   * Check if the current Object is strictly newer than ChangeNumber.
   * @param CN the Changenumber to compare with
   * @param CN the ChangeNumber to compare with
   * @return true if strictly newer
   */
  public boolean newer(ChangeNumber CN)
@@ -383,6 +385,7 @@
   * @return a negative integer, zero, or a positive integer as this object
   *         is less than, equal to, or greater than the specified object.
   */
  @Override
  public int compareTo(ChangeNumber cn)
  {
    return compare(this, cn);