directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r604963 - in /directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/entry: BinaryValue.java Value.java
Date Mon, 17 Dec 2007 18:41:11 GMT
Author: elecharny
Date: Mon Dec 17 10:41:11 2007
New Revision: 604963

URL: http://svn.apache.org/viewvc?rev=604963&view=rev
Log:
Added a get() method into the interfaces.

Modified:
    directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/entry/BinaryValue.java
    directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/entry/Value.java

Modified: directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/entry/BinaryValue.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/entry/BinaryValue.java?rev=604963&r1=604962&r2=604963&view=diff
==============================================================================
--- directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/entry/BinaryValue.java
(original)
+++ directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/entry/BinaryValue.java
Mon Dec 17 10:41:11 2007
@@ -162,6 +162,17 @@
 
     
     /**
+     * Gets a copy of the wrapped binary value.
+     * 
+     * @return a copy of the binary value that is wrapped
+     */
+    public byte[] get()
+    {
+        return getCopy();
+    }
+
+    
+    /**
      * Returns <code>true</code> if the wrapper contains no value.
      */
     public final boolean isNull()

Modified: directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/entry/Value.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/entry/Value.java?rev=604963&r1=604962&r2=604963&view=diff
==============================================================================
--- directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/entry/Value.java
(original)
+++ directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/entry/Value.java
Mon Dec 17 10:41:11 2007
@@ -42,4 +42,12 @@
      * @return <code>true</code> if the inner value is null.
      */
     boolean isNull();
+    
+    
+    /**
+     * Get the stored value.
+     *
+     * @return The stored value
+     */
+    T get();
 }



Mime
View raw message