public static class Maybe.Present<T> extends Maybe.AbstractPresent<T>
Maybe.Absent<T>, Maybe.AbsentNull<T>, Maybe.AbstractPresent<T>, Maybe.Present<T>, Maybe.SoftlyPresent<T>
Modifier and Type | Method and Description |
---|---|
T |
get() |
boolean |
isNull()
Whether the value is null, if present, or
if it was specified as absent because it was null,
e.g.
|
isPresent
absent, absent, absent, absent, absent, absentNull, absentNull, asSet, equals, fromNullable, hashCode, isAbsent, isAbsentOrNull, isPresentAndNonNull, next, of, of, of, ofAllowingNull, ofDisallowingNull, or, or, or, orNull, presentInstances, soft, softThen, toString, transform
public boolean isNull()
Maybe
Maybe.fromNullable(Object)
.