Package com.openhtmltopdf.util
Class LambdaUtil
java.lang.Object
com.openhtmltopdf.util.LambdaUtil
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Predicate
<T> static <T> Predicate
<T> static String
ancestorDump
(Box bx) Ancestor dump to string including starting box and referenced layers.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.private static void
descendantDump
(Box parent, int indent, List<LambdaUtil.DescendantContent> out) descendants
(Box parent) A stream of all descendant boxes not including InlineText or InlineBox objects.descendantsList
(Box parent) Seedescendants(Box)
static String
layerDescription
(Layer layer) Null-safe layer description including object id, toString and master box description.static String
Null-safe identity hash code.
-
Constructor Details
-
LambdaUtil
private LambdaUtil()
-
-
Method Details
-
ancestors
Null-safe way to look up the ancestor tree as a stream. Does not include starting box. Will return a empty stream if either bx or bx.getParent() is null. -
descendants
A stream of all descendant boxes not including InlineText or InlineBox objects. This would usually only be called after layout is concluded as InlineBox objects are converted to one or more InlineLayoutBox during layout. Should be in breadth first order. -
descendantsList
Seedescendants(Box)
-
objectId
Null-safe identity hash code. Debug only. -
boxDescription
Null-safe box description including object id, layer, containing layer and impl class. Debug only. -
layerDescription
Null-safe layer description including object id, toString and master box description. Debug only. -
ancestorDump
Ancestor dump to string including starting box and referenced layers. Debug only. -
descendantDump
-
descendantDump
Creates an indented dump of the box tree. Includes both the pre-layout inline-content and if layout has been run, the after layout structure. Debug only. -
alwaysTrue
-
alwaysFalse
-