public final class ModificationValue<T> extends Object
Modifier and Type | Method and Description |
---|---|
static <T> ModificationValue<T> |
absent()
Creates a new instance for a value that is not present.
|
T |
get()
Returns the value.
|
boolean |
isPresent()
Checks whether the value is present.
|
static <T> ModificationValue<T> |
of(T value)
Creates a new instance with the given value.
|
public static <T> ModificationValue<T> of(T value)
T
- the value typevalue
- the value (may be null)public static <T> ModificationValue<T> absent()
T
- the value typepublic boolean isPresent()
true
if the value is presentpublic T get()
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.