| Modifier and Type | Method and Description |
|---|---|
static <F,S> TryType<F,S> |
failure(F x)
Fail trivially, yielding
x. |
static <F,S> TryType<F,S> |
success(S x)
Succeed trivially, yielding
x. |
public static <F,S> TryType<F,S> failure(F x)
x.F - The type of failure values.S - The type of success values.x - The resultx.public static <F,S> TryType<F,S> success(S x)
x.F - The type of failure values.S - The type of success values.x - The resultx.Copyright © 2017 <code@io7m.com> http://io7m.com