Is given object <i>empty</i> (null or empty string)?
11084
protected boolean isEmpty(Object o) {
		if (o == null) {
			return true;
		} else if (o instanceof String) {
			return !StringUtils.hasText((String) o);
		} else {
			return false;
		}
	}
586791
def isEmpty(self):
        
        if self.obj is None:
            return True
        if self._clean.isString():
            ret = self.obj.strip() is ""
        elif self._clean.isDict():
            ret = len(self.obj.keys()) == 0
        else:
            ret = len(self.obj) == 0
        return self._wrap(ret)
245916
public static String emptyToNull(String str) {
        return (str == null || str.length() == 0 ? null : str);
    }
1303474
public boolean is_empty(String name) {
        DbDatum datum = datum(name);
        if (datum == null)
            return true;
        else
            return datum.is_empty();
    }
601941
public static String nullIfEmpty(String s) {
      if (s != null && s.length() == 0) {
         return null;
      } else {
         return s;
      }
   }
141635
function isEmpty() {
        if (_valueType === 'string') {
            _valid = _valid && _value === '';
        } else if (_valueType instanceof Array) {
            _valid = _valid && _value.length === 0;
        }
        return _guard;
    }
392433
public static boolean isEmpty(Object array) {
		if (null == array) {
			return true;
		} else if (isArray(array)) {
			return 0 == Array.getLength(array);
		}
		throw new UtilException("Object to provide is not a Array !");
	}
658680
private boolean isEmptyObject()
    {
        boolean retVal = false;

        /**
         * Check for no attributes
         */
        if (this.attrs == null || (this.attrs != null && this.attrs.isEmpty()))
        {
            /**
             * Check for no sub-children
             */
            if (this.jsonObjects.isEmpty())
            {
                /**
                 * Check for no tag text.
                 */
                if (this.tagText == null || (this.tagText != null && this.tagText.trim().equals("")))
                {
                    retVal = true;
                }
            }
        }

        return retVal;
    }
160358
public static boolean isNull( Object obj ) {
      if( obj instanceof JSONObject ){
         return ((JSONObject) obj).isNullObject();
      }
      return JSONNull.getInstance()
            .equals( obj );
   }
810085
def empty_value(attribute)
      type = java_type(attribute) || return
      if type.primitive? then
        type.name == 'boolean' ? false : 0
      else
        self.class.empty_value(attribute)
      end
    end
632243
function isString(o)  {
    return o !== undefined && o !== null &&
          (typeof o === "string" || o.constructor === String);
}
431270
public static void assertNull(Object object) {
		if (imp != null && object != null) {
			imp.assertFailed(StringUtils.format("Expected 'null' but was '%s'", object));
		}
	}
501613
function isEmpty( value ) {
	if ( isString( value ) && !value.length ) {
		return true;
	}
	if ( isArray( value ) && !value.length ) {
		return true;
	}
	if ( typeof value !== 'object' || value === null ) {
		return false;
	}
	return ( !keys( value ).length );
}
707669
@SuppressWarnings("rawtypes")
    public boolean isInputEmpty() {

        final Object fieldValue = getValue();
        final Class<?> fieldType = getType();

        if(fieldValue == null) {
            return true;

        } else if(Collection.class.isAssignableFrom(fieldType) && ((Collection) fieldValue).isEmpty()) {
            return true;

        } else if(fieldType.isArray()) {

            Class<?> componentType = fieldType.getComponentType();
            int length = Utils.getArraySize(fieldValue, componentType);
            if(length > 0) {
                return false;
            }

            return true;

        }

        return super.isInputEmpty();
    }
693448
def is_empty(self):
        """"""
        return (not self.breakpoint and not self.code_analysis
                and not self.todo and not self.bookmarks)
84777
function ( obj ) {
		return obj.nodeName === "FORM" ? validate.test( obj ) : !string.isEmpty( obj.value || element.text( obj ) );
	}
996285
def blank?(str)
      str.nil? or (str.is_a? String and str.strip.empty?)
    end