Checks that object reference is not {@code null}.

@param obj  an object
@return {@code false} if the object reference is {@code null}, {@code true} otherwise
@see Predicate
@see Predicate.Util#notNull()
@since 1.2.0
483047
@Contract(value = "null -> false; !null -> true", pure = true)
    public static boolean nonNull(@Nullable Object obj) {
        return obj != null;
    }
715851
public boolean hasNullPKField(ClassDescriptor cld, Object obj)
    {
        FieldDescriptor[] fields = cld.getPkFields();
        boolean hasNull = false;
        // an unmaterialized proxy object can never have nullified PK's
        IndirectionHandler handler = ProxyHelper.getIndirectionHandler(obj);
        if(handler == null || handler.alreadyMaterialized())
        {
            if(handler != null) obj = handler.getRealSubject();
            FieldDescriptor fld;
            for(int i = 0; i < fields.length; i++)
            {
                fld = fields[i];
                hasNull = representsNull(fld, fld.getPersistentField().get(obj));
                if(hasNull) break;
            }
        }
        return hasNull;
    }
87123
public static boolean hasMethod(Object obj, String name) {
		if (obj == null)
			throw new NullPointerException("Object cannot be null");
		if (name == null)
			throw new NullPointerException("Method name cannot be null");

		Class<?> objClass = obj.getClass();

		for (Method method : objClass.getMethods()) {
			if (matchMethod(method, name))
				return true;
		}

		return false;
	}
323867
public boolean matches(Object obj) {
        if (!(obj instanceof Exception))
            return false;

        Exception exception = (Exception) obj;

        return exception.getCause() == null;
    }
1077650
public static final Function<Float,Boolean> isNotNull() {
        return (Function<Float,Boolean>)((Function)FnObject.isNotNull());
    }
119446
public static final <X> Function<X,Boolean> isNotNullBy(final IFunction<X,?> by) {
        return FnFunc.chain(by, FnObject.isNotNull());
    }
1307987
public void setObject(Object obj) {
		this.checkNull(obj);
		this.list.add(obj);
		this.type.add(Object.class);
	}
1176877
public static boolean isBlankJson(final Object obj) {
        if (obj == null) {
            return true;
        }
        if(obj instanceof Collection) {
            return (((Collection) obj).size() == 0);
        }
        if(obj instanceof Map) {
            return (((Map) obj).size() == 0);
        }
        throw new UnsupportedOperationException("map or list is supported, got ${obj?obj.getClass():null}");
    }
1308697
public static boolean equalsObjects(
      @javax.annotation.Nullable Object x, @javax.annotation.Nullable Object y) {
    return x == null ? y == null : x.equals(y);
  }
1360516
public static void notNull(Object[] objs, String msg) {
        notNull(objs, msg);
        for (Object obj : objs) {
            notNull(obj, msg);
        }
    }
1351302
public static void checkNotNull(@Nullable Object object, @NonNull String message) {
        if (object == null) {
            throw new NullPointerException(message);
        }
    }
1051863
public static void notNull(final Object object, final String objectName) {
        if (object == null) {
            throw new IllegalArgumentException("expecting non-null value for " + maskNullArgument(objectName));
        }
    }
586209
public static final Function<Number,Boolean> isNotNull() {
        return (Function<Number,Boolean>)((Function)FnObject.isNotNull());
    }
189900
public boolean free(T obj)
  {
    AtomicInteger topRef = _top;

    while (true) {
      final int top = topRef.get();
      
      if (_capacity <= top) {
        return false;
      }

      boolean isFree = _freeStack.compareAndSet(top, null, obj);
      
      topRef.compareAndSet(top, top + 1);

      if (isFree) {
        return true;
      }
    }
  }
88907
public static void validateNull( Object object, String identifier )
        throws PreConditionException
    {
        if( object == null )
        {
            return;
        }
        throw new PreConditionException( identifier + " was NOT NULL." );
    }
1210703
@NonNull
    public static <T> T nonNull(@Nullable T obj) {
        if (obj == null) {
           throw new IllegalArgumentException("encountered illegal null value");
        }
        return obj;
    }
1092587
static boolean isBasicValueType(final Object obj) {
        return obj == null || obj instanceof String || obj instanceof Integer || obj instanceof Boolean
                || obj instanceof Long || obj instanceof Float || obj instanceof Double || obj instanceof Short
                || obj instanceof Byte || obj instanceof Character || obj.getClass().isEnum();
    }