U
- type an input is converted toS
- shared-state typepublic class SharedStateRememberConverted<U extends InputFromManager,S> extends Object
This class is intended as the shared-state for ConvertNamedChannels
.
Constructor and Description |
---|
SharedStateRememberConverted() |
Modifier and Type | Method and Description |
---|---|
Optional<U> |
findConvertedInputFor(NamedChannelsInput unconverted,
MessageLogger logger)
Finds a converted-input that has been remembered.
|
void |
forgetAll()
Forgets all converted inputs.
|
S |
getSharedState()
The shared state.
|
void |
rememberConverted(NamedChannelsInput unconverted,
U converted,
StringBuilder loggedMesssages)
Remembers a converted input.
|
void |
setSharedState(S sharedState)
The shared state.
|
public void rememberConverted(NamedChannelsInput unconverted, U converted, StringBuilder loggedMesssages)
unconverted
- the unconverted valueconverted
- the converted valueloggedMesssages
- any messages logged during the conversion.public Optional<U> findConvertedInputFor(NamedChannelsInput unconverted, MessageLogger logger)
unconverted
- the unconverted inputlogger
- where to log any messages that occurred during conversion.unconverted
, if it exists.public void forgetAll()
public S getSharedState()
public void setSharedState(S sharedState)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.