io.lacuna.bifurcan.IEntry Maven / Gradle / Ivy
package io.lacuna.bifurcan;
import java.util.function.BiPredicate;
/**
* @author ztellman
*/
public interface IEntry {
K key();
V value();
default boolean equals(IEntry o, BiPredicate keyEquals, BiPredicate valEquals) {
return keyEquals.test(key(), o.key()) && valEquals.test(value(), o.value());
}
}