OSDN Git Service

2003-12-18 Michael Koch <konqueror@gmx.de>
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Dec 2003 16:48:33 +0000 (16:48 +0000)
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Dec 2003 16:48:33 +0000 (16:48 +0000)
* java/util/prefs/AbstractPreferences.java
(cachedChildren): New method.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74785 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/java/util/prefs/AbstractPreferences.java

index 36048e4..e2133bd 100644 (file)
@@ -1,5 +1,10 @@
 2003-12-18  Michael Koch  <konqueror@gmx.de>
 
+       * java/util/prefs/AbstractPreferences.java
+       (cachedChildren): New method.
+
+2003-12-18  Michael Koch  <konqueror@gmx.de>
+
        * java/util/TimeZone.java (getOffset): New method.
 
 2003-12-17  Fernando Nasser  <fnasser@redhat.com>
index a6a3e9a..4463c5e 100644 (file)
@@ -183,6 +183,16 @@ public abstract class AbstractPreferences extends Preferences {
     }
 
     /**
+     * Returns all known unremoved children of this node.
+     *
+     * @return All known unremoved children of this node
+     */
+    protected final AbstractPreferences[] cachedChildren()
+    {
+      return (AbstractPreferences[]) childCache.values().toArray();
+    }
+
+    /**
      * Returns all the direct sub nodes of this preferences node.
      * Needs access to the backing store to give a meaningfull answer.
      * <p>