Class ConstructorMatcher

java.lang.Object
dev.derklaro.reflexion.matcher.BaseMatcher<Constructor<?>, ConstructorMatcher>
dev.derklaro.reflexion.matcher.ConstructorMatcher
All Implemented Interfaces:
Predicate<Constructor<?>>

public final class ConstructorMatcher extends BaseMatcher<Constructor<?>, ConstructorMatcher>
A matcher for constructors.
Since:
1.0
  • Constructor Details

    • ConstructorMatcher

      private ConstructorMatcher()
  • Method Details

    • newMatcher

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

      @NotNull public @NotNull ConstructorMatcher parameterCount(int count)
      Checks if the constructor 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.