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

org.usergrid.android.client.utils.ObjectUtils Maven / Gradle / Ivy

There is a newer version: 0.0.6
Show newest version
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