- get
If a value is present in this OptionalByte, returns the value, otherwise throws
IllegalStateExceptio
- isPresent
Return true if there is a value present, otherwise false.
- absent
Returns an absent OptionalByte instance. No value is present for this Optional.
- ifPresent
If a value is present, invoke the specified consumer with the value, otherwise
do nothing.
- ifPresentOrElse
If a value is present, invoke the specified consumer with the value, otherwise
invoke the function p
- of
Returns an OptionalByte with the specified present value.
- or
Return the value if present, otherwise invoke otherSupplier and return the
result of that invocation
- orThrow
Return the contained value, if present, otherwise throw an exception instance
provided as the parame