com.mparticle.sdk.Utils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
mParticle Java SDK used to integrate with mParticle's Firehose API
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;
}
}