Modifier and Type | Method and Description |
---|---|
Optional<T> |
getOrLog(String name,
Logger logger)
Gets an object or otherwise logs a message describing what went wrong.
|
Optional<T> getOrLog(String name, Logger logger)
name
- the name of the object to find, as may appear in the log.logger
- the logger.Optional.empty()
.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.