java.lang.Object
io.github.miniplaceholders.api.utils.Conditions
Checks required for the correct operation of the expansions
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
nonEmptyString
(String string, Supplier<String> reason) Check if a string is empty or consists of whitespace characters onlystatic String
nonNullOrEmptyString
(String string, Supplier<String> name) Checks if a string is null or empty or consists of whitespace characters only
-
Method Details
-
nonNullOrEmptyString
Checks if a string is null or empty or consists of whitespace characters only- Parameters:
string
- the stringname
- the name supplier- Returns:
- the string if it is not null or empty
- Since:
- 1.0.0
-
nonEmptyString
Check if a string is empty or consists of whitespace characters only- Parameters:
string
- the stringreason
- the reason supplier- Returns:
- the string if it not empty
- Since:
- 1.0.0
-