- get
If a value is present in this OptionalShort, returns the value, otherwise throws
IllegalStateExcepti
- isPresent
Return true if there is a value present, otherwise false.
- <init>
Constructs an instance with the value present.
- absent
Returns an absent OptionalShort instance. No value is present for this Optional.
- ifPresent
If a value is present, invoke the specified consumer with the value, otherwise
do nothing.
- of
Returns an OptionalShort with the specified present value.
- or
Return the value if present, otherwise return other.
- orThrow
Return the contained value, if present, otherwise throw an exception instance
provided as the parame