net.yudichev.jiotty.common.lang.EqualityComparator Maven / Gradle / Ivy
package net.yudichev.jiotty.common.lang;
import java.util.Objects;
public interface EqualityComparator {
boolean areEqual(T left, T right);
static EqualityComparator referenceEquality() {
return (left, right) -> left == right;
}
static EqualityComparator equality() {
return Objects::equals;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy