Class MethodMatcher

All Implemented Interfaces:
Predicate<Method>

public final class MethodMatcher extends BaseMatcher<Method, MethodMatcher>
A matcher for methods.
Since:
1.0
  • Constructor Details

    • MethodMatcher

      private MethodMatcher()
  • Method Details

    • newMatcher

      @NotNull public static @NotNull MethodMatcher newMatcher()
      Constructs a new method matcher instance.
      Returns:
      a new method matcher.
    • parameterCount

      @NotNull public @NotNull MethodMatcher parameterCount(int count)
      Checks if the method has the given amount of parameters.
      Parameters:
      count - the expected amount of parameters.
      Returns:
      the same instance as used to call the method, for chaining.