Package io.higson.runtime.utils
Class HprString
java.lang.Object
io.higson.runtime.utils.HprString
- Author:
- przemek hertel
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic StringFunction to guide many strings to the left: returns a string of length flax supplemented by spaces on the right side, if it is necessary; otherwise returns the same objectstatic StringalignRight(String s, char c, int len) static StringalignRight(String s, int len) Function to guide the string to the right: returns string s supplemented with spaces on the left side, so that it will get the length of linen.
-
Method Details
-
alignLeft
Function to guide many strings to the left: returns a string of length flax supplemented by spaces on the right side, if it is necessary; otherwise returns the same object- Parameters:
s- String object to alightlen- length- Returns:
- string s of length flax supplemented by spaces on the right side, or returns the same object
-
alignLeft
-
alignRight
Function to guide the string to the right: returns string s supplemented with spaces on the left side, so that it will get the length of linen.- Parameters:
s- String object to alightlen- length- Returns:
- string s supplemented with spaces on the left side
-
alignRight
-