Strings Class
- java.
lang. Object - com.
microsoft. azure. keyvault. extensions. Strings
- com.
public class Strings
String handlers.
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean |
isNullOrEmpty(String arg)
Determines whether the parameter string is either null or empty. |
boolean |
isNullOrWhiteSpace(String arg)
Determines whether the parameter string is null, empty or whitespace. |
Method Details
isNullOrEmpty
public static boolean isNullOrEmpty(String arg)
Determines whether the parameter string is either null or empty.
Parameters:
arg
- the string to verify
Returns:
true if the string is empty or null and false otherwise.
isNullOrWhiteSpace
public static boolean isNullOrWhiteSpace(String arg)
Determines whether the parameter string is null, empty or whitespace.
Parameters:
arg
- the string to verify
Returns:
true if the string is empty, contains only whitespace or is null and false otherwise
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java