All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy