Returns an empty OptionalLong
instance. No value is present for
this OptionalLong
.
OptionalLong
.
@apiNote
Though it may be tempting to do so, avoid testing if an object is empty
by comparing with ==
against instances returned by
OptionalLong.empty()
. There is no guarantee that it is a singleton.
Instead, use isPresent()
.
Diagram: Optional