/** * @return True if both are null or equal, otherwise returns false */ public static boolean isIdentical(Object a, Object b) { return !isDifferent(a, b); }
public boolean evaluate(Object o) { return isNotEmpty(o); } };
include = ObjectUtils.isIdentical(lhs, rhs); include = ObjectUtils.isDifferent(lhs, rhs);
public static <T> List<T> buildNonNull(Collection<T> c) { List<T> list; if (c != null && !c.isEmpty()) { list = build(CollectionUtils.predicatedCollection(c, ObjectUtils.getIsSetPredicate())); } else { list = Collections.emptyList(); } return list; }
public static List buildNonNull(Collection c) { List list; if (c != null && !c.isEmpty()) { list = build(CollectionUtils.predicatedCollection(c, ObjectUtils.getIsSetPredicate())); } else { list = Collections.EMPTY_LIST; } return list; }
public static <T> List<T> buildNonNull(T[] array) { List<T> list; if (array != null && array.length > 0) { list = createList(array.length); for (T o : array) { if (ObjectUtils.isNotEmpty(o)) { list.add(o); } } } else { list = Collections.emptyList(); } return list; }
/** * @return True if both are null or equal, otherwise returns false */ public static boolean isIdentical(Object a, Object b) { return !isDifferent(a, b); }
public static List buildNonNull(Object[] array) { List list; if (array != null && array.length > 0) { list = createList(array.length); for (int i = 0; i < array.length; i++) { Object o = array[i]; if (ObjectUtils.isNotEmpty(o)) { list.add(o); } } } else { list = Collections.EMPTY_LIST; } return list; }
public static <T> List<T> buildNonNull(T o) { if (ObjectUtils.isNotEmpty(o)) { return build(o); } else { return build(); } }
public static List buildNonNull(Object o) { if (ObjectUtils.isNotEmpty(o)) { return build(o); } else { return build(); } }