jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <mreut...@adobe.com>
Subject ChildNodeEntry
Date Wed, 12 Sep 2012 09:29:46 GMT
Hi,

I was wondering why we have the interface ChildNodeEntry?
To me it looks like its usages can be replaced with other methods
on NodeState. e.g. the following code in JsopDiff.toJson(NodeState, JsopBuilder):

        for (ChildNodeEntry child : nodeState.getChildNodeEntries()) {
            jsop.key(child.getName());
            toJson(child.getNodeState(), jsop);
        }

can simply be replaced with:

        for (String childName : nodeState.getChildNodeNames()) {
            jsop.key(childName);
            toJson(nodeState.getChildNode(childName), jsop);
        }

regards
 marcel

Mime
View raw message