org.usergrid.android.client.utils.ObjectUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of usergrid-android-client Show documentation
Show all versions of usergrid-android-client Show documentation
A simple java client for usergrid
package org.usergrid.android.client.utils;
import java.util.Map;
public class ObjectUtils {
public static boolean isEmpty(Object s) {
if (s == null) {
return true;
}
if ((s instanceof String) && (((String) s).trim().length() == 0)) {
return true;
}
if (s instanceof Map) {
return ((Map, ?>) s).isEmpty();
}
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy