public class OptionalShouldBeEmpty extends BasicErrorMessageFactory
Optional
should be empty.arguments, format, formatter
Modifier | Constructor and Description |
---|---|
private |
OptionalShouldBeEmpty(java.lang.Class<?> optionalClass,
java.lang.Object optionalValue) |
Modifier and Type | Method and Description |
---|---|
static <VALUE> OptionalShouldBeEmpty |
shouldBeEmpty(java.util.Optional<VALUE> optional)
Indicates that the provided
Optional should be empty. |
static OptionalShouldBeEmpty |
shouldBeEmpty(java.util.OptionalDouble optional)
Indicates that the provided
OptionalDouble should be empty. |
static OptionalShouldBeEmpty |
shouldBeEmpty(java.util.OptionalInt optional)
Indicates that the provided
OptionalInt should be empty. |
static OptionalShouldBeEmpty |
shouldBeEmpty(java.util.OptionalLong optional)
Indicates that the provided
OptionalLong should be empty. |
create, create, create, equals, hashCode, toString, unquotedString
private OptionalShouldBeEmpty(java.lang.Class<?> optionalClass, java.lang.Object optionalValue)
public static <VALUE> OptionalShouldBeEmpty shouldBeEmpty(java.util.Optional<VALUE> optional)
Optional
should be empty.VALUE
- the type of the value contained in the Optional
.optional
- the actual Optional
to test.public static OptionalShouldBeEmpty shouldBeEmpty(java.util.OptionalDouble optional)
OptionalDouble
should be empty.optional
- the actual OptionalDouble
to test.public static OptionalShouldBeEmpty shouldBeEmpty(java.util.OptionalInt optional)
OptionalInt
should be empty.optional
- the actual OptionalInt
to test.public static OptionalShouldBeEmpty shouldBeEmpty(java.util.OptionalLong optional)
OptionalLong
should be empty.optional
- the actual OptionalLong
to test.