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.
|
isPresentabsent, absent, absent, absent, absent, absentNoTrace, absentNull, absentNull, absentWithTrace, asSet, cast, equals, fromNullable, fromOptional, getException, hashCode, isAbsent, isAbsentOrNull, isPresentAndNonNull, next, of, of, of, ofAllowingNull, ofDisallowingNull, or, or, or, orNull, orThrowUnwrapped, presentInstances, soft, softThen, toOptional, toString, transformpublic T get()
public boolean isNull()
MaybeMaybe.fromNullable(Object).