Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mockito.internal.matchers
Class CapturingMatcher<T>

    java.lang.Object
      org.hamcrest.BaseMatcher<T>
          org.mockito.ArgumentMatcher<T>
              org.mockito.internal.matchers.CapturingMatcher<T>

All Implemented Interfaces:
  java.io.Serializable, org.hamcrest.Matcher<T>, org.hamcrest.SelfDescribing, CapturesArguments

    public class CapturingMatcher<T>

extends ArgumentMatcher<T>
implements CapturesArguments, java.io.Serializable

See Also:
  Serialized Form

Constructor Summary
`CapturingMatcher()`

Method Summary
`void` | `captureFrom(java.lang.Object argument)`
`void` | `describeTo(org.hamcrest.Description description)`
`java.util.List<T>` | `getAllValues()`
`T` | `getLastValue()`
`boolean` | `matches(java.lang.Object argument)` Returns whether this matcher accepts the given argument.

Methods inherited from class org.hamcrest.BaseMatcher
`_dont_implement_Matcher___instead_extend_BaseMatcher_, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### CapturingMatcher

    public CapturingMatcher()

Method Detail

### matches

    public boolean matches(java.lang.Object argument)

  Description copied from class: `ArgumentMatcher`
  Returns whether this matcher accepts the given argument.

  The method should never assert if the argument doesn't match. It should only return false.

  Specified by:
    `matches` in interface `org.hamcrest.Matcher<T>`
  Specified by:
    `matches` in class `ArgumentMatcher<T>`
  Parameters:
    `argument` - the argument
  Returns:
    whether this matcher accepts the given argument.

### describeTo

    public void describeTo(org.hamcrest.Description description)

  Specified by:
    `describeTo` in interface `org.hamcrest.SelfDescribing`
  Overrides:
    `describeTo` in class `ArgumentMatcher<T>`

### getLastValue

    public T getLastValue()

### getAllValues

    public java.util.List<T> getAllValues()

### captureFrom

    public void captureFrom(java.lang.Object argument)

  Specified by:
    `captureFrom` in interface `CapturesArguments`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD