From f5e61220e9878f71165989bd9f21f1d0a568bb87 Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Fri, 30 Jul 2010 13:23:20 +0000
Subject: [PATCH] Code refactoring, renaming and commenting only. No feature nor behavior change.
---
opends/src/server/org/opends/server/replication/plugin/AttrValueHistorical.java | 34 +++++++++++++++++-----------------
1 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/plugin/ValueInfo.java b/opends/src/server/org/opends/server/replication/plugin/AttrValueHistorical.java
similarity index 72%
rename from opends/src/server/org/opends/server/replication/plugin/ValueInfo.java
rename to opends/src/server/org/opends/server/replication/plugin/AttrValueHistorical.java
index 78b9bd2..bf3d14d 100644
--- a/opends/src/server/org/opends/server/replication/plugin/ValueInfo.java
+++ b/opends/src/server/org/opends/server/replication/plugin/AttrValueHistorical.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Copyright 2006-2008 Sun Microsystems, Inc.
+ * Copyright 2006-2010 Sun Microsystems, Inc.
*/
package org.opends.server.replication.plugin;
@@ -30,22 +30,22 @@
import org.opends.server.types.AttributeValue;
/**
- * Allows to store historical information about specific values
- * for a given attribute.
+ * Store historical information for an attribute value.
*/
-public class ValueInfo
+public class AttrValueHistorical
{
private AttributeValue value;
private ChangeNumber valueDeleteTime;
private ChangeNumber valueUpdateTime;
/**
- * Build a new ValueInfo.
- * @param value value for which ValueInfo is built
- * @param CNupdate last time when value was updated last
- * @param CNdelete last time when value for deleted
+ * Build an AttrValueHistorical for a provided AttributeValue, providing
+ * the last time the provided value is either updated or deleted.
+ * @param value the provided attributeValue
+ * @param CNupdate last time when this value was updated
+ * @param CNdelete last time when this value for deleted
*/
- public ValueInfo(AttributeValue value,
+ public AttrValueHistorical(AttributeValue value,
ChangeNumber CNupdate,
ChangeNumber CNdelete)
{
@@ -63,10 +63,10 @@
@Override
public boolean equals(Object obj)
{
- if (obj instanceof ValueInfo)
+ if (obj instanceof AttrValueHistorical)
{
- ValueInfo objVal = (ValueInfo) obj;
- return (value.equals(objVal.getValue()));
+ AttrValueHistorical objVal = (AttrValueHistorical) obj;
+ return (value.equals(objVal.getAttributeValue()));
}
else
{
@@ -104,17 +104,17 @@
}
/**
- * Get the value for which this ValueInfo was generated.
- * @return the value for which this ValueInfo was generated
+ * Get the attributeValue for which this object was generated.
+ * @return the value for which this object was generated
*/
- public AttributeValue getValue()
+ public AttributeValue getAttributeValue()
{
return value;
}
/**
- * Check if the value associated with this ValueInfo was updated.
- * @return true if the value associated with this ValueInfo was updated
+ * Check if the value associated with this object was updated.
+ * @return true if the value associated with this object was updated
*/
public boolean isUpdate()
{
--
Gitblit v1.10.0