Top Description Interfaces Annotations Classes
[default module]

Package org.hamcrest


The stable API defining Matcher and its associated interfaces and classes. Hamcrest sub-projects define their convenience classes in the org.hamcrest package.

Interface Summary

Modifier and TypeInterface and Description
public interface
Description

A description of a Matcher.

public interface
Matcher<T>

A matcher over acceptable values.

public interface
SelfDescribing

The ability of an object to describe itself.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
Factory

Marks a Hamcrest static factory method so tools recognise them.

Class Summary

Modifier and TypeClass and Description
public abstract class
BaseDescription

A Description that is stored as a string.

public abstract class
BaseMatcher<T>

BaseClass for all Matcher implementations.

public abstract class
Condition<T>

A Condition implements part of a multi-step match.

public class
public abstract class
CustomMatcher<
The type of object being matched.
T
>

Utility class for writing one off matchers.

public abstract class
CustomTypeSafeMatcher<
The type of object being matched
T
>

Utility class for writing one off matchers.

public abstract class
DiagnosingMatcher<T>

TODO(ngd): Document.

public abstract class
FeatureMatcher<
The type of the object to be matched
T
,
The type of the feature to be matched
U
>

Supporting class for matching a feature of an object.

public class
public class
StringDescription

A Description that is stored as a string.

public abstract class
TypeSafeDiagnosingMatcher<T>

Convenient base class for Matchers that require a non-null value of a specific type and that will report why the received value has been rejected.

public abstract class
TypeSafeMatcher<T>

Convenient base class for Matchers that require a non-null value of a specific type.