S - The type of success values.F - The type of failure values.public interface TryType<F,S> extends Serializable
The type of computations that can succeed and yield S, or fail
and yield F.
| Modifier and Type | Method and Description |
|---|---|
<U> U |
accept(TryVisitorType<F,S,U> v)
Accept a visitor.
|
<U,E extends Throwable> |
acceptPartial(TryPartialVisitorType<F,S,U,E> v)
Accept a partial visitor.
|
<U> U accept(TryVisitorType<F,S,U> v)
U - The type of values returned by the visitor.v - The visitor<U,E extends Throwable> U acceptPartial(TryPartialVisitorType<F,S,U,E> v) throws E extends Throwable
U - The type of values returned by the visitor.E - The type of exceptions thrown by the visitor.v - The visitorE - If the visitor throws E.E extends ThrowableCopyright © 2017 <code@io7m.com> http://io7m.com