directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r801319 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/AbstractValue.java
Date Wed, 05 Aug 2009 17:22:56 GMT
Author: elecharny
Date: Wed Aug  5 17:22:55 2009
New Revision: 801319

URL: http://svn.apache.org/viewvc?rev=801319&view=rev
Log:
Added a flag to tell that two values are the same

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/AbstractValue.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/AbstractValue.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/AbstractValue.java?rev=801319&r1=801318&r2=801319&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/AbstractValue.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/AbstractValue.java
Wed Aug  5 17:22:55 2009
@@ -50,6 +50,8 @@
     /** cached results of the isValid() method call */
     protected Boolean valid;
 
+    /** A flag set if the normalized data is different from the wrapped data */
+    protected transient boolean same;
     
     /**
      * Reset the value
@@ -63,6 +65,9 @@
     }
 
     
+    /**
+     * {@inheritDoc}
+     */
     public Value<T> clone()
     {
         try
@@ -161,6 +166,15 @@
     
     
     /**
+     * @return Tells if the wrapped value and the normalized value are the same 
+     */
+    public final boolean isSame()
+    {
+        return same;
+    }
+
+    
+    /**
      * Check if the Valid flag is set or not. This flag is set by a call
      * to the isValid( SyntaxChecker ) method for client values. It is overridden
      * for server values.



Mime
View raw message