com.hadii.stiff.text.NormalizedSpaceText Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stiff-lib Show documentation
Show all versions of stiff-lib Show documentation
stiff-lib is a java library for generating stiff diagrams.
The newest version!
package com.hadii.stiff.text;
import org.apache.commons.lang3.StringUtils;
/**
* Represents text with normalized spacing.
*/
final class NormalizedSpaceText implements Text {
private final Text text;
NormalizedSpaceText(Text text) {
this.text = text;
}
@Override
public String value() {
return StringUtils.normalizeSpace(this.text.value());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy