- absent
Returns an Optional instance with no contained reference.Comparison to
java.util.Optional: this meth
- fromNullable
If nullableReference is non-null, returns an Optional instance containing that
reference; otherwise
- get
Returns the contained instance, which must be present. If the instance might be
absent, use #or(Obje
- isPresent
Returns true if this holder contains a (non-null) instance.Comparison to
java.util.Optional: no diff
- of
Returns an Optional instance containing the given non-null reference. To have
null treated as #absen
- or
Returns the contained instance if it is present; supplier.get() otherwise.
Comparison to java.util.O
- orNull
Returns the contained instance if it is present; null otherwise. If the instance
is known to be pres
- toJavaUtil
Returns the equivalent java.util.Optional value to the given
org.apache.ratis.shaded.com.google.comm