public interface String_To_NoWs extends IsTransformer<String,String>
Converts a string to a string without any excessive whitespace characters. Excessive white spaces are consecutive spaces, tabulators, and line breaks.
| Modifier and Type | Method and Description |
|---|---|
static String |
convert(String s)
Returns a string with all excessive white spaces removed.
|
static String_To_NoWs |
create()
Creates a transformer that takes a String and returns a String without excessive whitespace characters.
|
default String |
transform(String s)
Transforms a String to a String removing all excessive whitespace characters.
|
apply, transformdefault String transform(String s)
Transforms a String to a String removing all excessive whitespace characters.
transform in interface Transformer<String,String>s - input stringnull if input was nullstatic String_To_NoWs create()
Creates a transformer that takes a String and returns a String without excessive whitespace characters.
Copyright © 2016–2017. All rights reserved.