Class ITextExtensions
- java.lang.Object
-
- nz.net.ultraq.thymeleaf.layoutdialect.models.extensions.ITextExtensions
-
-
Constructor Summary
Constructors Constructor Description ITextExtensions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanequals(IText self, Object other)Compares this text with another.static booleanisWhitespace(IText self)Returns whether or not this text event is collapsible whitespace.
-
-
-
Method Detail
-
equals
public static boolean equals(IText self, Object other)
Compares this text with another.- Parameters:
self-other-- Returns:
trueif the text content matches.
-
isWhitespace
public static boolean isWhitespace(IText self)
Returns whether or not this text event is collapsible whitespace.- Parameters:
self-- Returns:
trueif, when trimmed, the text content is empty.
-
-