org.opends.server.replication.plugin
Class ValueInfo

java.lang.Object
  extended by org.opends.server.replication.plugin.ValueInfo

public class ValueInfo
extends java.lang.Object

Allows to store historical information about specific values for a given attribute.


Constructor Summary
ValueInfo(AttributeValue value, ChangeNumber CNupdate, ChangeNumber CNdelete)
          Build a new ValueInfo.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this object with another ValueInfo object.
 AttributeValue getValue()
          Get the value for which this ValueInfo was generated.
 ChangeNumber getValueDeleteTime()
          Get the last time when the value was deleted.
 ChangeNumber getValueUpdateTime()
          Get the last time when the value was updated.
 int hashCode()
          calculates the hasCode for this object.
 boolean isUpdate()
          Check if the value associated with this ValueInfo was updated.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueInfo

public ValueInfo(AttributeValue value,
                 ChangeNumber CNupdate,
                 ChangeNumber CNdelete)
Build a new ValueInfo.

Parameters:
value - value for which ValueInfo is built
CNupdate - last time when value was updated last
CNdelete - last time when value for deleted
Method Detail

equals

public boolean equals(java.lang.Object obj)
Compares this object with another ValueInfo object. Object are said equals when their values matches.

Overrides:
equals in class java.lang.Object
Parameters:
obj - object to be compared with this object
Returns:
true if equal, false otherwise

hashCode

public int hashCode()
calculates the hasCode for this object. Only value is used when calculating the hashCode

Overrides:
hashCode in class java.lang.Object
Returns:
the hashcode

getValueDeleteTime

public ChangeNumber getValueDeleteTime()
Get the last time when the value was deleted.

Returns:
the last time when the value was deleted

getValueUpdateTime

public ChangeNumber getValueUpdateTime()
Get the last time when the value was updated.

Returns:
the last time when the value was updated

getValue

public AttributeValue getValue()
Get the value for which this ValueInfo was generated.

Returns:
the value for which this ValueInfo was generated

isUpdate

public boolean isUpdate()
Check if the value associated with this ValueInfo was updated.

Returns:
true if the value associated with this ValueInfo was updated