/* (non-Javadoc)
@see cyclops2.monads.transformers.values.ListT#onEmpty(java.lang.Object)
482424
@Override
    public ListT<W,T> onEmpty(final T value) {

        return (ListT<W,T>) FoldableTransformerSeq.super.onEmpty(value);
    }
668907
public static <T> List<T> listOfOne(final T one) {
        List<T> list = new ArrayList<>();
        list.add(one);
        return list;
    }
111606
public <T extends Collection<?>> T notEmpty(final T collection, final String message) {
        if (collection == null) {
            failNull(message);
        }
        if (collection.isEmpty()) {
            fail(message);
        }
        return collection;
    }
1111865
public static String nullIfEmpty(String value) {
		return value==null || value.isEmpty() ? null : value;
	}
196463
public static <T> T nullIfEmpty(T value) throws IOException {
		return isEmpty(value) ? null : value;
	}
1248371
public static <T> Func1<T, Observable<Object>> toEmpty() {
        return Functions.constant(Observable.<Object> empty());
    }
269400
public static <T> List<T> nullToEmptyList(Collection<T> newValue) {
    if (newValue == null) {
      return new ArrayList<>();
    }
    return new ArrayList<>(newValue);
  }
871590
public static void notEmpty(List<?> list, String errorMsg){
        if(list == null || list.size() == 0){
            throw new MapperException(errorMsg);
        }
    }
754827
public AnimaQuery<T> notEmpty(String columnName) {
        conditionSQL.append(" AND ").append(columnName).append(" != ''");
        return this;
    }
694185
public static String notEmpty(String value, String name) {
        return notEmpty(value, name, null);
    }
66053
public static void isNotEmpty( Collection<?> argument,
                                   String name ) {
        isNotNull(argument, name);
        if (argument.isEmpty()) {
            throw new IllegalArgumentException(CommonI18n.argumentMayNotBeEmpty.text(name));
        }
    }
1134706
public static <K, E, V extends List<E>> List<E> getOrEmptyList(final Map<K, V> map, final Object key) {
        if (N.isNullOrEmpty(map)) {
            return N.<E> emptyList();
        }

        final V val = map.get(key);

        if (val != null || map.containsKey(key)) {
            return val;
        } else {
            return N.emptyList();
        }
    }
590541
public boolean getInboundStreamsEmpty()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getInboundStreamsEmpty");

    boolean returnValue = false;
    if(_targetStreamManager!=null)
    {
      returnValue = _targetStreamManager.isEmpty();
    }
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getInboundStreamsEmpty", new Boolean(returnValue));
    return returnValue;
  }
965261
function defaultIfEmpty(defaultValue) {
    if (defaultValue === void 0) {
        defaultValue = null;
    }
    return function (source) { return source.lift(new DefaultIfEmptyOperator(defaultValue)); };
}
969632
@SuppressWarnings("rawtypes")
	public static boolean isEmpty(Object obj) {
		if(null == obj) {
			return true;
		}
		
		if(obj instanceof CharSequence) {
			return StrUtil.isEmpty((CharSequence)obj);
		}else if(obj instanceof Map) {
			return MapUtil.isEmpty((Map)obj);
		}else if(obj instanceof Iterable) {
			return IterUtil.isEmpty((Iterable)obj);
		}else if(obj instanceof Iterator) {
			return IterUtil.isEmpty((Iterator)obj);
		}else if(ArrayUtil.isArray(obj)) {
			return ArrayUtil.isEmpty(obj);
		}
		
		return false;
	}
251466
public static int listFindIgnoreEmpty(String list, String value, char delimiter) {
	if (list == null) return -1;
	int len = list.length();
	if (len == 0) return -1;
	int last = 0;
	int count = 0;

	for (int i = 0; i < len; i++) {
	    if (list.charAt(i) == delimiter) {
		if (last < i) {
		    if (list.substring(last, i).equals(value)) return count;
		    count++;
		}
		last = i + 1;
	    }
	}
	if (last < len) {
	    if (list.substring(last).equals(value)) return count;
	}
	return -1;
    }
249112
public static void notEmpty(final CharSequence str, final String parameterName) {
		if (str == null || str.length() == 0) {
			throw new IllegalArgumentException('"' + parameterName + "\" must not be null or empty, but was: " + str);
		}
	}