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 StringancestorDump(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 StringboxDescription(Box box) Null-safe box description including object id, layer, containing layer and impl class.static StringdescendantDump(Box root) Creates an indented dump of the box tree.private static voiddescendantDump(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 StringlayerDescription(Layer layer) Null-safe layer description including object id, toString and master box description.static StringNull-safe identity hash code.
-
Constructor Details
-
LambdaUtil
private LambdaUtil()
-
-
Method Details
-
ancestors
-
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
-
boxDescription
-
layerDescription
-
ancestorDump
-
descendantDump
-
descendantDump
-
alwaysTrue
-
alwaysFalse
-