public class OptionalShouldBePresent extends BasicErrorMessageFactory
Optional
.arguments, format, formatter
Modifier | Constructor and Description |
---|---|
private |
OptionalShouldBePresent(java.lang.Object optional) |
Modifier and Type | Method and Description |
---|---|
static OptionalShouldBePresent |
shouldBePresent(java.lang.Object optional)
Indicates that a value should be present in an empty
Optional . |
create, create, create, equals, hashCode, toString, unquotedString
private OptionalShouldBePresent(java.lang.Object optional)
public static OptionalShouldBePresent shouldBePresent(java.lang.Object optional)
Optional
.optional
- the optional instancejava.lang.NullPointerException
- if optional is null.