File tree Expand file tree Collapse file tree
hamcrest/src/main/java/org/hamcrest/object Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ protected String featureValueOf(T actual) {
2323 *
2424 * @param toStringMatcher
2525 * the matcher used to verify the toString result
26+ * @return The matcher.
2627 */
2728 public static <T > Matcher <T > hasToString (Matcher <? super String > toStringMatcher ) {
2829 return new HasToString <T >(toStringMatcher );
@@ -36,6 +37,7 @@ public static <T> Matcher<T> hasToString(Matcher<? super String> toStringMatcher
3637 *
3738 * @param expectedToString
3839 * the expected toString result
40+ * @return The matcher.
3941 */
4042 public static <T > Matcher <T > hasToString (String expectedToString ) {
4143 return new HasToString <T >(equalTo (expectedToString ));
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ public void describeTo(Description description) {
3434 *
3535 * @param baseType
3636 * the base class to examine classes against
37+ * @return The matcher.
3738 */
3839 public static <T > Matcher <Class <?>> typeCompatibleWith (Class <T > baseType ) {
3940 return new IsCompatibleType <T >(baseType );
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ public void describeTo(Description description) {
5656 * the class of the event to match on
5757 * @param source
5858 * the source of the event
59+ * @return The matcher.
5960 */
6061 public static Matcher <EventObject > eventFrom (Class <? extends EventObject > eventClass , Object source ) {
6162 return new IsEventFrom (eventClass , source );
@@ -69,6 +70,7 @@ public static Matcher<EventObject> eventFrom(Class<? extends EventObject> eventC
6970 *
7071 * @param source
7172 * the source of the event
73+ * @return The matcher.
7274 */
7375 public static Matcher <EventObject > eventFrom (Object source ) {
7476 return eventFrom (EventObject .class , source );
You can’t perform that action at this time.
0 commit comments