jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1331103 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/PropertyStateImpl.java
Date Thu, 26 Apr 2012 21:24:33 GMT
Author: mduerig
Date: Thu Apr 26 21:24:32 2012
New Revision: 1331103

URL: http://svn.apache.org/viewvc?rev=1331103&view=rev
Log:
add toString

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/PropertyStateImpl.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/PropertyStateImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/PropertyStateImpl.java?rev=1331103&r1=1331102&r2=1331103&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/PropertyStateImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/PropertyStateImpl.java
Thu Apr 26 21:24:32 2012
@@ -18,13 +18,13 @@
  */
 package org.apache.jackrabbit.oak.core;
 
+import org.apache.jackrabbit.oak.api.CoreValue;
+import org.apache.jackrabbit.oak.api.PropertyState;
+
 import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
 
-import org.apache.jackrabbit.oak.api.CoreValue;
-import org.apache.jackrabbit.oak.api.PropertyState;
-
 public class PropertyStateImpl implements PropertyState {
 
     private final String name;
@@ -99,6 +99,11 @@ public class PropertyStateImpl implement
         return getName().hashCode();
     }
 
+    @Override
+    public String toString() {
+        return getName() + '=' + (isArray() ? getValues() : getValue());
+    }
+
     //------------------------------------------------------------< private >---
 
     private boolean valueEquals(PropertyState other) {



Mime
View raw message