Package org.fest.util
Class Strings.StringToAppend
java.lang.Object
org.fest.util.Strings.StringToAppend
- Enclosing class:
- Strings
Understands how to append a given
String to the given target, only if the target does not end with the
given String to append.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
toAppend
TheStringto append.
-
-
Constructor Details
-
StringToAppend
StringToAppend(String toAppend) Creates a new.Strings.StringToAppend- Parameters:
toAppend- theStringto append.
-
-
Method Details
-
to
Appends theStringspecified in the constructor to theStringpassed as argument.- Parameters:
s- the targetString.- Returns:
- a
Stringcontaining the targetStringwith the givenStringto append added to the end.
-