Strings Class

  • java.lang.Object
    • com.microsoft.azure.keyvault.extensions.Strings

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