com.microsoft.azure.sdk.iot.device.twin.Tools Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iot-device-client Show documentation
Show all versions of iot-device-client Show documentation
The Microsoft Azure IoT Device SDK for Java
/*
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
package com.microsoft.azure.sdk.iot.device.twin;
/**
* Collection of static helper functions
*/
class Tools
{
/**
* Helper function to check if the input string is null or empty
*
* @param value The string to check
* @return The value true if the input string is empty or null
*/
static Boolean isNullOrEmpty(String value)
{
boolean retVal;
if (value == null)
retVal = true;
else
retVal = value.length() == 0;
return retVal;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy