Package org.storynode.pigeon.protocol
Interface Wrapped<T>
- Type Parameters:
T- The type of the wrapped value
- All Known Subinterfaces:
SafelyWrapped<T>
public interface Wrapped<T>
A type that serves as a wrapper for a given value that allows accessing that value.
- Since:
- 1.0.0
- Author:
- Andrea Coronese
-
Method Summary
-
Method Details
-
unwrap
Gets the wrapped value. This method is allowed to throw aUnwrapExceptionif the specific implementors requires so.- Returns:
- The wrapped value
- Throws:
UnwrapException- if any.
-