T
- public class DualState<T> extends Object
Constructor and Description |
---|
DualState() |
Modifier and Type | Method and Description |
---|---|
void |
assignBestFromCurrent() |
void |
assignCurrent(Optional<T> stateToAssign) |
void |
clearBest() |
Optional<T> |
getBest() |
Optional<T> |
getCurrent() |
T |
releaseKeepBest() |
<S> DualState<S> |
transform(StateTransformer<T,S> func,
TransformationContext context) |
public T releaseKeepBest() throws OperationFailedException
OperationFailedException
public void assignBestFromCurrent()
public void clearBest()
public <S> DualState<S> transform(StateTransformer<T,S> func, TransformationContext context) throws OperationFailedException
OperationFailedException
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.