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 Details

    • NodeComparatorBySingleAttribute

      public NodeComparatorBySingleAttribute(String attributeName)
  • Method Details