com.microsoft.azure.keyvault.cryptography.Strings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-keyvault-cryptography Show documentation
Show all versions of azure-keyvault-cryptography Show documentation
This package contains Microsoft Azure SDK for Key Vault Cryptography.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.azure.keyvault.cryptography;
public final class Strings {
/**
* Determines whether the parameter string is either null or empty.
*
* @param arg The string to be checked.
* @return true if the string is null or empty.
*/
public static boolean isNullOrEmpty(String arg) {
if (arg == null || arg.length() == 0) {
return true;
}
return false;
}
/**
* Determines whether the parameter string is null, empty or whitespace.
*
* @param arg The string to be checked.
* @return true if the string is null, empty or whitespace.
*/
public static boolean isNullOrWhiteSpace(String arg) {
if (Strings.isNullOrEmpty(arg) || arg.trim().isEmpty()) {
return true;
}
return false;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy