Interface Findable<T>
- Type Parameters:
T
- object-type to try to find.
public interface Findable<T>
- Author:
- Owen Feehan
-
Method Summary
-
Method Details
-
getOrLog
Gets an object or otherwise logs a message describing what went wrong.- Parameters:
name
- the name of the object to find, as may appear in the log.logger
- the logger.- Returns:
- the object if found, otherwise
Optional.empty()
.
-