Class Matchers

java.lang.Object
org.elasticsearch.common.inject.matcher.Matchers

public class Matchers extends Object
Matcher implementations. Supports matching classes and methods.
  • Method Details

    • subclassesOf

      public static Matcher<Class<?>> subclassesOf(Class<?> superclass)
      Returns a matcher which matches subclasses of the given type (as well as the given type).
    • identicalTo

      public static Matcher<Object> identicalTo(Object value)
      Returns a matcher which matches only the given object.