ErrorMessageFactory
public class OptionalShouldBePresent extends BasicErrorMessageFactory
Optional
.arguments, format
Modifier and Type | Method | Description |
---|---|---|
static OptionalShouldBePresent |
shouldBePresent(Object optional) |
Indicates that a value should be present in an empty
Optional . |
create, create, create, equals, hashCode, toString, unquotedString
public static OptionalShouldBePresent shouldBePresent(Object optional)
Optional
.optional
- NullPointerException
- if optional is null.Copyright © 2014–2019. All rights reserved.