Construct from a value.
(T value)
| 34 | |
| 35 | /** Construct from a value. */ |
| 36 | public static <T> StatusOr<T> fromValue(T value) { |
| 37 | StatusOr<T> result = new StatusOr<T>(null, value); |
| 38 | return result; |
| 39 | } |
| 40 | |
| 41 | /** Construct from a non-Ok status. */ |
| 42 | public static <T> StatusOr<T> fromStatus(Status status) { |
no outgoing calls