Class NotFound<T>
Object
org.anchoranalysis.annotation.io.image.findable.NotFound<T>
- Type Parameters:
T- the object-type that may be found.
- All Implemented Interfaces:
Findable<T>
public final class NotFound<T> extends Object implements Findable<T>
A negative-result when an object is not found at a particular location.
- Author:
- Owen Feehan
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleanequals(Object o)Optional<T>getOrLog(String name, org.anchoranalysis.core.log.Logger logger)Gets an object or otherwise logs a message describing what went wrong.PathgetPath()The path an object was not found at.StringgetReason()The reason an object could not be found.inthashCode()StringtoString()
-
Constructor Details
-
Method Details
-
getOrLog
Description copied from interface:FindableGets an object or otherwise logs a message describing what went wrong.- Specified by:
getOrLogin interfaceFindable<T>- 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().
-
getPath
The path an object was not found at. -
getReason
The reason an object could not be found. -
equals
-
hashCode
public int hashCode() -
toString
-