Modifier and Type | Method and Description |
---|---|
OptionalConsumer<T> |
ifNotPresent(Runnable r) |
OptionalConsumer<T> |
ifPresent(Consumer<T> c) |
static <T> OptionalConsumer<T> |
of(Optional<T> optional) |
public static <T> OptionalConsumer<T> of(Optional<T> optional)
public OptionalConsumer<T> ifPresent(Consumer<T> c)
public OptionalConsumer<T> ifNotPresent(Runnable r)
Copyright © 2018 Magnolia International Ltd.. All rights reserved.