public abstract class WithSideEffect<T,W> extends Object implements com.google.common.base.Function<W,T>
Modifier and Type | Class and Description |
---|---|
static class |
WithSideEffect.util |
Constructor and Description |
---|
WithSideEffect() |
Modifier and Type | Method and Description |
---|---|
protected <V> V |
__apply(com.google.common.base.Function<? super W,? extends V> withSideEffect) |
protected abstract T |
_apply() |
T |
apply(W world) |
static <T,W> WithSideEffect<T,W> |
fromNullable(T value) |
static <T,W> WithSideEffect<T,W> |
of(T value) |
public final T apply(W world) throws NoSuchElementException
apply
in interface com.google.common.base.Function<W,T>
NoSuchElementException
protected abstract T _apply() throws NoSuchElementException
NoSuchElementException
protected final <V> V __apply(com.google.common.base.Function<? super W,? extends V> withSideEffect)
public static <T,W> WithSideEffect<T,W> of(T value)
public static <T,W> WithSideEffect<T,W> fromNullable(T value)
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.