public static boolean noneNull(Object... objects) { return !anyNull(objects); }
private int compareTitles(String title, String otherTitle) { if (NullUtils.anyNull(title, otherTitle)) { return NullUtils.compareNulls(title, otherTitle); } return title.compareTo(otherTitle); }
public static int compareStrings(String string, String otherString) { if (NullUtils.anyNull(string, otherString)) { return NullUtils.compareNulls(string, otherString); } return string.compareTo(otherString); }
public static <T extends Comparable<T>> int compareObjectsNullSafe(T thisObject, T otherObject) { if (anyNull(thisObject, otherObject)) { return compareNulls(thisObject, otherObject); } return thisObject.compareTo(otherObject); }
private int compareTypes(String affiliationType, String otherAffiliationType) { if (NullUtils.anyNull(affiliationType, otherAffiliationType)) { return NullUtils.compareNulls(affiliationType, otherAffiliationType); } return affiliationType.compareTo(otherAffiliationType); }
private int compareNames(String name, String otherName) { if (NullUtils.anyNull(name, otherName)) { return NullUtils.compareNulls(name, otherName); } return name.compareTo(otherName); }
private int compareDepartments(String department, String otherDepartment) { if (NullUtils.anyNull(department, otherDepartment)) { return NullUtils.compareNulls(department, otherDepartment); } return department.compareTo(otherDepartment); }
private int compareTypes(String type, String otherType) { if (NullUtils.anyNull(type, otherType)) { return -NullUtils.compareNulls(type, otherType); } return -type.compareTo(otherType); }
private int compareLongs(Long l1, Long l2 ) { if (NullUtils.anyNull(l1, l2)) { return NullUtils.compareNulls(l1, l2); } return l1.compareTo(l2); }
private int compareStarts(FuzzyDateEntity startDate, FuzzyDateEntity otherStartDate) { if (NullUtils.anyNull(startDate, otherStartDate)) { return NullUtils.compareNulls(startDate, otherStartDate); } return -startDate.compareTo(otherStartDate); }
private int compareStarts(FuzzyDateEntity startDate, FuzzyDateEntity otherStartDate) { if (NullUtils.anyNull(startDate, otherStartDate)) { return NullUtils.compareNulls(startDate, otherStartDate); } return -startDate.compareTo(otherStartDate); }
private int compareEnds(FuzzyDateEntity endDate, FuzzyDateEntity otherEndDate) { if (NullUtils.anyNull(endDate, otherEndDate)) { return -NullUtils.compareNulls(endDate, otherEndDate); } return -endDate.compareTo(otherEndDate); }
private int compareEnds(FuzzyDateEntity endDate, FuzzyDateEntity otherEndDate) { if (NullUtils.anyNull(endDate, otherEndDate)) { return -NullUtils.compareNulls(endDate, otherEndDate); } return -endDate.compareTo(otherEndDate); }