StringUtils
public final class StringUtils extends Object
Methods
getInstance
public static StringUtils getInstance()
Returns instance of StringUtils.
ReturnValue
Name | Description |
---|---|
StringUtils
|
integerToHexString
public String integerToHexString(int integer)
Converts Integer to '-' separated Hex string.
Parameters
Name | Description |
---|---|
int integer
|
ReturnValue
Name | Description |
---|---|
String
|
hexStringToInteger
public int hexStringToInteger(String integer)
Converts '-' separated Hex String to Integer.
Parameters
Name | Description |
---|---|
String integer
|
ReturnValue
Name | Description |
---|---|
int
|
sha1
public String sha1(String text)
Calculates SHA of the text.
Parameters
Name | Description |
---|---|
String text
|
ReturnValue
Name | Description |
---|---|
String
|
Util class with methods related to string.