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

org.infinispan.commons.configuration.attributes.Matchable Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commons.configuration.attributes;

/**
 * An interface for defining non-strict equality, e.g. such as attributes being of the same type but not necessarily
 * having the same value. The default behaviour delegates to {@link Object#equals(Object)}.
 *
 * @author Tristan Tarrant
 * @since 9.2
 */

public interface Matchable {

   default boolean matches(T other) {
      return equals(other);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy