info.magnolia.rendering.template.configured
Class ConfiguredInheritance.NodeDepthComparator

java.lang.Object
  extended by info.magnolia.rendering.template.configured.ConfiguredInheritance.NodeDepthComparator
All Implemented Interfaces:
Comparator<javax.jcr.Node>
Enclosing class:
ConfiguredInheritance

public static class ConfiguredInheritance.NodeDepthComparator
extends Object
implements Comparator<javax.jcr.Node>

Comparator for ordering nodes by depth placing nodes deeper in the hierarchy after those further up and ordering nodes on the same level by the order they appear as siblings.


Constructor Summary
ConfiguredInheritance.NodeDepthComparator()
           
 
Method Summary
 int compare(javax.jcr.Node lhs, javax.jcr.Node rhs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ConfiguredInheritance.NodeDepthComparator

public ConfiguredInheritance.NodeDepthComparator()
Method Detail

compare

public int compare(javax.jcr.Node lhs,
                   javax.jcr.Node rhs)
Specified by:
compare in interface Comparator<javax.jcr.Node>


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.