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

com.mparticle.sdk.Utils Maven / Gradle / Ivy

package com.mparticle.sdk;

public final class Utils {

    private Utils() {
    }

    /**
     * Checks if a CharSequence is null or empty.
     *
     * @param cs the CharSequence to check
     * @return {@code true} if the CharSequence is null or empty
     */
    public static boolean isNullOrEmpty(final CharSequence cs) {
        return cs == null || cs.length() == 0;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy