public class LambdaUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
alwaysFalse() |
static <T> Predicate<T> |
alwaysTrue() |
static String |
ancestorDump(Box bx)
Ancestor dump to string including starting box and referenced layers.
|
static Stream<Box> |
ancestors(Box bx)
Null-safe way to look up the ancestor tree as a stream.
|
static String |
boxDescription(Box box)
Null-safe box description including object id, layer, containing layer and impl class.
|
static String |
descendantDump(Box root)
Creates an indented dump of the box tree.
|
static Stream<Box> |
descendants(Box parent)
A stream of all descendant boxes not including
InlineText or InlineBox objects.
|
static List<Box> |
descendantsList(Box parent)
See
descendants(Box) |
static String |
layerDescription(Layer layer)
Null-safe layer description including object id, toString and master box description.
|
static String |
objectId(Object obj)
Null-safe identity hash code.
|
public static Stream<Box> ancestors(Box bx)
public static Stream<Box> descendants(Box parent)
public static List<Box> descendantsList(Box parent)
descendants(Box)public static String boxDescription(Box box)
public static String layerDescription(Layer layer)
public static String ancestorDump(Box bx)
public static String descendantDump(Box root)
public static <T> Predicate<T> alwaysTrue()
public static <T> Predicate<T> alwaysFalse()
Copyright © 2004–2025. All rights reserved.