Summary: Methods | Inherited Methods | [Expand All]

# Checks

`public final class Checks`
`extends Object` ``

java.lang.Object
↳ | android.support.test.espresso.intent.Checks

Substitute for Guava Preconditions to avoid guava as a dep.

## Summary

### Public methods
`static void` | `checkArgument(boolean expression, Object errorMessage)`
`static void` | `checkArgument(boolean expression)`
`static void` | `checkArgument(boolean expression, String errorMessageTemplate, Object... errorMessageArgs)`
`static <T> T` | `checkNotNull(T reference, Object errorMessage)`
`static <T> T` | `checkNotNull(T reference)`
`static <T> T` | `checkNotNull(T reference, String errorMessageTemplate, Object... errorMessageArgs)`
`static void` | `checkState(boolean expression, String errorMessageTemplate, Object... errorMessageArgs)`

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()`
`boolean` | `equals(Object arg0)`
`void` | `finalize()`
`final Class<?>` | `getClass()`
`int` | `hashCode()`
`final void` | `notify()`
`final void` | `notifyAll()`
`String` | `toString()`
`final void` | `wait(long arg0, int arg1)`
`final void` | `wait(long arg0)`
`final void` | `wait()`

## Public methods

### checkArgument

    void checkArgument (boolean expression,
                    Object errorMessage)

Parameters
`expression` | `boolean`
`errorMessage` | `Object`

### checkArgument

    void checkArgument (boolean expression)

Parameters
`expression` | `boolean`

### checkArgument

    void checkArgument (boolean expression,
                    String errorMessageTemplate,
                    Object... errorMessageArgs)

Parameters
`expression` | `boolean`
`errorMessageTemplate` | `String`
`errorMessageArgs` | `Object`

### checkNotNull

    T checkNotNull (T reference,
                    Object errorMessage)

Parameters
`reference` | `T`
`errorMessage` | `Object`

Returns
`T` |

### checkNotNull

    T checkNotNull (T reference)

Parameters
`reference` | `T`

Returns
`T` |

### checkNotNull

    T checkNotNull (T reference,
                    String errorMessageTemplate,
                    Object... errorMessageArgs)

Parameters
`reference` | `T`
`errorMessageTemplate` | `String`
`errorMessageArgs` | `Object`

Returns
`T` |

### checkState

    void checkState (boolean expression,
                    String errorMessageTemplate,
                    Object... errorMessageArgs)

Parameters
`expression` | `boolean`
`errorMessageTemplate` | `String`
`errorMessageArgs` | `Object`

- ## Interfaces

  - ResettingStubber
  - ResolvedIntent
  - VerifiableIntent
  - VerificationMode

- ## Classes

  - Checks
  - Intents
  - OngoingStubbing
  - ResettingStubberImpl
  - VerificationModes