Uses of Class
specialized_checkers.collection.CheckerTree
Packages that use CheckerTree
-
Uses of CheckerTree in specialized_checkers.collection
Subclasses with type arguments of type CheckerTree in specialized_checkers.collectionModifier and TypeClassDescriptionclass
CheckerTree<T>
A specialized checker forTree
data structures, providing a fluent API to assert various properties and invariants about a tree.Methods in specialized_checkers.collection that return CheckerTreeModifier and TypeMethodDescriptionstatic <T> CheckerTree
<T> CheckerTree.check
(T rootValue) Creates a CheckerTree from a root value with a default name.static <T> CheckerTree
<T> Creates a CheckerTree from a root value and assigns a custom name.static <T> CheckerTree
<T> Creates a CheckerTree from a root value and a map of children, with a default name.static <T> CheckerTree
<T> Creates a CheckerTree from a root value and a map of children, and assigns a custom name.static <T> CheckerTree
<T> Creates a CheckerTree for the given tree with a default name.static <T> CheckerTree
<T> Creates a CheckerTree for the given tree and assigns a custom name.CheckerTree.inRangeDepth
(int min, int max) Checks if the tree's depth is within the specified range (inclusive).CheckerTree.inRangeDiamenter
(int min, int max) Checks if the tree's diameter is within the specified range (inclusive).CheckerTree.inRangeLeaves
(int min, int max) Checks if the number of leaves in the tree is within the specified range (inclusive).CheckerTree.isBinaryTree()
Checks if the tree is a binary tree (each node has at most two children).CheckerTree.isEmpty()
Checks if the tree is empty.CheckerTree.isFull()
Checks if the tree is full (every node has 0 or 2 children).CheckerTree.isSymmetric()
Checks if the tree is symmetric (mirror image around its center).CheckerTree.maxDepth
(int max) Checks if the tree's depth is at most the specified maximum.CheckerTree.maxDiamenter
(int max) Checks if the tree's diameter is at most the specified maximum.CheckerTree.maxLeaves
(int max) Checks if the number of leaves in the tree is at most the specified maximum.CheckerTree.minDepth
(int min) Checks if the tree's depth is at least the specified minimum.CheckerTree.minDiamenter
(int min) Checks if the tree's diameter is at least the specified minimum.CheckerTree.minLeaves
(int min) Checks if the number of leaves in the tree is at least the specified minimum.protected CheckerTree
<T> CheckerTree.self()
Returns this instance (for fluent API). -
Uses of CheckerTree in util
Methods in util that return CheckerTreeModifier and TypeMethodDescription<T> CheckerTree
<T> Checker.isTree
(T rootValue) Creates a CheckerTree for the given root value.<T> CheckerTree
<T> Creates a CheckerTree for the given root value and children map.