public static class Maybe.SoftlyPresent<T> extends Maybe<T>
Maybe.Absent<T>, Maybe.AbsentNull<T>, Maybe.AbstractPresent<T>, Maybe.MaybeSupplier<T>, Maybe.Present<T>, Maybe.SoftlyPresent<T>
Modifier and Type | Method and Description |
---|---|
T |
get() |
static MemoryUsageTracker.SoftUsageTracker |
getUsageTracker()
Returns the global usage tracker to determine how many references are soft
|
boolean |
isNull()
Whether the value is null, if present, or
if it was specified as absent because it was null,
e.g.
|
boolean |
isPresent() |
T |
orNull() |
Maybe<T> |
solidify() |
absent, 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, orThrowUnwrapped, presentInstances, soft, softThen, toOptional, toString, transform
public boolean isNull()
Maybe
Maybe.fromNullable(Object)
.public static MemoryUsageTracker.SoftUsageTracker getUsageTracker()