Class NodeUtil.NodeComparatorBySingleAttribute
java.lang.Object
org.broadleafcommerce.common.util.NodeUtil.NodeComparatorBySingleAttribute
- All Implemented Interfaces:
Comparator<Node>
- Enclosing class:
- NodeUtil
public static class NodeUtil.NodeComparatorBySingleAttribute
extends Object
implements Comparator<Node>
a simple implementation of the Comparator interface, (applied to the Node class) that uses the value of a given
node attribute as comparison criterion.
Nodes not having the required attribute (or not having attributes at all) bypass this comparator, i.e., they are considered arbitrarily different
as far as this comparator is concerned.
- Author:
- gdiaz
-
Constructor Summary
Constructors -
Method Summary
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
NodeComparatorBySingleAttribute
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Node>
-