All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.bytefish.fcmjava.client.utils.StringUtils Maven / Gradle / Ivy

There is a newer version: 2.5
Show newest version
// Copyright (c) Philipp Wagner. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

package de.bytefish.fcmjava.client.utils;

public class StringUtils {

    private StringUtils() {
    }

    /**
     * Returns true, if a string is null or only contains of Whitespace characters.
     *
     * @param input Input string
     * @return true, if string is null or a whitespace character
     */
    public static boolean isNullOrWhiteSpace(String input) {
        return input == null || input.trim().length() == 0;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy