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

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

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

/**
 * A way to match attributes to works with types without the need to subclass them to add the @{@link Matchable} interface.
 *
 * @param 
 */
public interface AttributeMatcher {
   AttributeMatcher TRUE = (o1, o2) -> true;

   static  AttributeMatcher alwaysTrue() {
      return (AttributeMatcher) TRUE;
   }

   boolean matches(Attribute o1, Attribute o2);
}