felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r558951 - /felix/sandbox/cziegeler/preferences/src/main/java/org/apache/felix/sandbox/preferences/ChangeSet.java
Date Tue, 24 Jul 2007 07:48:42 GMT
Author: cziegeler
Date: Tue Jul 24 00:48:41 2007
New Revision: 558951

URL: http://svn.apache.org/viewvc?view=rev&rev=558951
Log:
Add getters for the modifications.

Modified:
    felix/sandbox/cziegeler/preferences/src/main/java/org/apache/felix/sandbox/preferences/ChangeSet.java

Modified: felix/sandbox/cziegeler/preferences/src/main/java/org/apache/felix/sandbox/preferences/ChangeSet.java
URL: http://svn.apache.org/viewvc/felix/sandbox/cziegeler/preferences/src/main/java/org/apache/felix/sandbox/preferences/ChangeSet.java?view=diff&rev=558951&r1=558950&r2=558951
==============================================================================
--- felix/sandbox/cziegeler/preferences/src/main/java/org/apache/felix/sandbox/preferences/ChangeSet.java
(original)
+++ felix/sandbox/cziegeler/preferences/src/main/java/org/apache/felix/sandbox/preferences/ChangeSet.java
Tue Jul 24 00:48:41 2007
@@ -18,6 +18,8 @@
  */
 package org.apache.felix.sandbox.preferences;
 
+import java.util.Collection;
+import java.util.Collections;
 import java.util.HashSet;
 import java.util.Set;
 
@@ -112,5 +114,37 @@
             this.changedProperties.addAll(other.changedProperties);
             this.removedProperties.addAll(other.removedProperties);
         }
+    }
+
+    /**
+     * Return a collection with the changed property names.
+     * @return A collection.
+     */
+    public Collection getChangedProperties() {
+        return Collections.unmodifiableCollection(this.changedProperties);
+    }
+
+    /**
+     * Return a collection with the removed property names.
+     * @return A collection.
+     */
+    public Collection getRemovedProperties() {
+        return Collections.unmodifiableCollection(this.removedProperties);
+    }
+
+    /**
+     * Return a collection with the added children names.
+     * @return A collection.
+     */
+    public Collection getAddedChildren() {
+        return Collections.unmodifiableCollection(this.addedChildren);
+    }
+
+    /**
+     * Return a collection with the removed children names.
+     * @return A collection.
+     */
+    public Collection getRemovedChildren() {
+        return Collections.unmodifiableCollection(this.removedChildren);
     }
 }



Mime
View raw message