Modifier and Type | Method and Description |
---|---|
void |
hasValue(Object expected)
Fails if the
Optional <T> does not have the given value or the subject is null. |
void |
isAbsent()
Fails if the
Optional <T> is present or the subject is null. |
void |
isPresent()
Fails if the
Optional <T> is absent or the subject is null. |
actualCustomStringRepresentation, check, equals, failWithActual, failWithActual, failWithoutActual, hashCode, ignoreCheck, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameInstanceAs, isNull, isSameInstanceAs, toString
Copyright © 2020. All rights reserved.