Package org.hamcrest
Interface SelfDescribing
- All Known Subinterfaces:
Matcher<T>
- All Known Implementing Classes:
AllOf,AnyOf,ArrayAsIterableMatcher,BaseMatcher,BigDecimalCloseTo,CharSequenceLength,CombinableMatcher,CustomMatcher,CustomTypeSafeMatcher,DescribedAs,DiagnosingMatcher,Every,FeatureMatcher,HasEqualValues,HasItemInArray,HasProperty,HasPropertyWithValue,HasToString,HasXPath,Is,IsAnything,IsArray,IsArrayContainingInAnyOrder,IsArrayContainingInOrder,IsArrayWithSize,IsBlankString,IsCloseTo,IsCollectionContaining,IsCollectionWithSize,IsCompatibleType,IsEmptyCollection,IsEmptyIterable,IsEmptyString,IsEqual,IsEqualCompressingWhiteSpace,IsEqualIgnoringCase,IsEventFrom,IsIn,IsInstanceOf,IsIterableContaining,IsIterableContainingInAnyOrder,IsIterableContainingInOrder,IsIterableContainingInRelativeOrder,IsIterableWithSize,IsMapContaining,IsMapWithSize,IsNaN,IsNot,IsNull,IsSame,MatchesPattern,SamePropertyValuesAs,StringContains,StringContainsInOrder,StringEndsWith,StringRegularExpression,StringStartsWith,SubstringMatcher,TypeSafeDiagnosingMatcher,TypeSafeMatcher
public interface SelfDescribing
The ability of an object to describe itself.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddescribeTo(Description description) Generates a description of the object.
-
Method Details
-
describeTo
Generates a description of the object. The description may be part of a description of a larger object of which this is just a component, so it should be worded appropriately.- Parameters:
description- The description to be built or appended to.
-