Class Found<T>
Object
Found<T>
- Type Parameters:
- T- the object-type that may be found.
- All Implemented Interfaces:
- Findable<T>
A positive-result when an object is found at a particular location.
- Author:
- Owen Feehan
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
FoundCreates a newFoundinstance.- Parameters:
- object- The found object.
 
 
- 
- 
Method Details- 
getOrLogDescription copied from interface:FindableGets an object or otherwise logs a message describing what went wrong.- Specified by:
- getOrLogin interface- Findable<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().
 
- 
getObjectThe found object.
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-