Skip to content

Commit 6597e0a

Browse files
author
smgfreeman
committed
added comment for abstract method
1 parent fc0112c commit 6597e0a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hamcrest-core/src/main/java/org/hamcrest/FeatureMatcher.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ public FeatureMatcher(Matcher<? super U> subMatcher, String featureDescription,
2828
this.featureName = featureName;
2929
}
3030

31+
/**
32+
* Implement this to extract the interesting feature.
33+
* @param actual the target object
34+
* @return the feature to be matched
35+
*/
3136
protected abstract U featureValueOf(T actual);
3237

3338
@Override

0 commit comments

Comments
 (0)