public class OneKeeperPartialResultHolder<R> extends Object implements PartialResultHolder<R>
| Constructor and Description | 
|---|
| OneKeeperPartialResultHolder() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | accept(R result)Accepts the result. | 
| void | acceptIfNeeded(Supplier<R> supplier)Accepts only if previous result has been taken before. | 
| Optional<R> | take()Takes partial result if exists. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnullInstancenullConsumer, transformpublic void accept(R result)
PartialResultConsumeraccept in interface PartialResultConsumer<R>public void acceptIfNeeded(Supplier<R> supplier)
acceptIfNeeded in interface PartialResultConsumer<R>public Optional<R> take()
PartialResultProvidertake in interface PartialResultProvider<R>