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 boolean
equals(IText self, Object other)
Compares this text with another.static boolean
isWhitespace(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:
true
if the text content matches.
-
isWhitespace
public static boolean isWhitespace(IText self)
Returns whether or not this text event is collapsible whitespace.- Parameters:
self
-- Returns:
true
if, when trimmed, the text content is empty.
-
-