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
TheString
to append.
-
-
Constructor Details
-
StringToAppend
StringToAppend(String toAppend) Creates a new
.Strings.StringToAppend
- Parameters:
toAppend
- theString
to append.
-
-
Method Details
-
to
Appends theString
specified in the constructor to theString
passed as argument.- Parameters:
s
- the targetString
.- Returns:
- a
String
containing the targetString
with the givenString
to append added to the end.
-