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

## org.hamcrest.text
Class StringStartsWith

    java.lang.Object
      org.hamcrest.BaseMatcher<T>
          org.hamcrest.TypeSafeMatcher<String>
              org.hamcrest.text.SubstringMatcher
                  org.hamcrest.text.StringStartsWith

All Implemented Interfaces:
  Matcher<String>, SelfDescribing

    public class StringStartsWith

extends SubstringMatcher

Tests if the argument is a string that contains a substring.

Field Summary

Fields inherited from class org.hamcrest.text.SubstringMatcher
`substring`

Constructor Summary
`StringStartsWith(String substring)`

Method Summary
`protected boolean` | `evalSubstringOf(String s)`
`protected String` | `relationship()`
`static Matcher<String>` | `startsWith(String substring)`

Methods inherited from class org.hamcrest.text.SubstringMatcher
`describeTo, matchesSafely`

Methods inherited from class org.hamcrest.TypeSafeMatcher
`matches`

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

### StringStartsWith

    public StringStartsWith(String substring)

Method Detail

### evalSubstringOf

    protected boolean evalSubstringOf(String s)

  Specified by:
    `evalSubstringOf` in class `SubstringMatcher`

### relationship

    protected String relationship()

  Specified by:
    `relationship` in class `SubstringMatcher`

### startsWith

    public static Matcher<String> startsWith(String substring)

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