Class Strings
- java.lang.Object
-
- org.spongepowered.configurate.util.Strings
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisBlank(String test)Return if the input string is empty or has no non-whitespace characters.static Stringrepeat(String content, int times)Create a new string with the contents of the provided string repeatedtimestimes.
-
-
-
Method Detail
-
repeat
public static String repeat(String content, int times)
Create a new string with the contents of the provided string repeatedtimestimes.Available in
Stringitself as of JDK 11.- Parameters:
content- text to repeattimes- amount to repeat- Returns:
- repeated string
- Since:
- 4.0.0
-
-