com.iodesystems.fn.aspects.Values Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fn Show documentation
Show all versions of fn Show documentation
Fn is a lazy Java Library that helps utilize some rudimentary functional concepts with more nounular
objects
package com.iodesystems.fn.aspects;
public class Values {
public static A ifNull(A thing, A ifNull) {
if (thing == null) {
return ifNull;
}
return thing;
}
public static boolean isEqual(A value, A value1) {
if (value == null) {
return value1 == null;
}
return value.equals(value1);
}
}