| Modifier and Type | Class and Description |
|---|---|
class |
CheckedValue<T,E extends Exception>
Utility holder similar to
Optional, except the empty case contains an Exception, which should be
reported, for example via throwing it. |
| Modifier and Type | Method and Description |
|---|---|
static <T,U> Variant<T,U> |
Variant.ofFirst(T value)
Create a new instance containing specified value.
|
static <T,U> Variant<T,U> |
Variant.ofSecond(U value)
Create a new instance containing specified value.
|
| Modifier and Type | Method and Description |
|---|---|
static <T,U,E extends Exception> |
CheckedValue.ofVariant(Variant<T,U> variant,
Function<U,E> mapper)
Convert a Variant into a
CheckedValue, converting the second value into an exception. |
Copyright © 2018 OpenDaylight. All rights reserved.