Skip to content

Commit

Permalink
Fill in missing javadoc for Optional matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
tumbarumba committed Sep 8, 2024
1 parent 3019f1b commit 01c776c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@
import java.util.Optional;

/**
* Matcher that expects empty {@link Optional}.
* Matcher that expects an empty {@link Optional}.
* @param <T> type of {@link Optional} value
*/
public class OptionalEmpty<T> extends TypeSafeDiagnosingMatcher<Optional<T>> {

/**
* Constructor, best called from {@link #emptyOptional()}.
*/
public OptionalEmpty() {
}

/**
* Matcher that expects empty {@link Optional}.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Matchers that perform comparisons on {@link java.util.Optional} instances.
*/
package org.hamcrest.optional;

0 comments on commit 01c776c

Please sign in to comment.