Optional
contains a value that is logically equal to the operand, as
determined by calling the equals method on the value.Optional
contains a value that satisfies the specified matcher.Optional
contains no value.Optional
contains a value.java.util.Optional:
isEmpty() - matches when the examined Optional
contains no value.
isPresent() - matches when the examined Optional
contains a value.
hasValue(Object) - matches when the examined
Optional contains a value that is logically equal to the
operand.
hasValue(Matcher) - matches when the examined
Optional contains a value that satisfies the specified matcher.Copyright © 2015–2016. All rights reserved.