public class NodeUtils extends Object
| Constructor and Description |
|---|
NodeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Criteria |
criteriaFromNode(Node node)
Creates criteria from a node.
|
static Criteria |
criteriaFromNode(Node node,
Comparator rangeComparator)
Creates criteria from a node.
|
static boolean |
isEmpty(Node node)
Determines if a node is null, or a single parent node without children.
|
static boolean |
isLeaf(Node node)
Returns true if a node is a leaf.
|
static boolean |
isRangeLeaf(Leaf leaf)
Determines if leaf represents a possible range of values (bounded or unbounded)
|
static boolean |
parentContainsOnlyLeaves(ParentNode parentNode)
Determines if parent node has children that are all leaves
|
public static boolean isLeaf(Node node)
public static boolean isEmpty(Node node)
public static boolean parentContainsOnlyLeaves(ParentNode parentNode)
public static boolean isRangeLeaf(Leaf leaf)
public static Criteria criteriaFromNode(Node node)
public static Criteria criteriaFromNode(Node node, Comparator rangeComparator)
Copyright © 2018 Calrissian. All rights reserved.