public abstract class Result<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addParseErrorTo(List<ParseError> parseErrorList) |
static <T> Result<T> |
empty(Line line) |
abstract T |
get() |
T |
list() |
static <T> Result<List<T>> |
mixed(List<T> value,
List<ParseError> parseErrorList) |
static <T> Result<T> |
of(T value) |
static <T> Result<T> |
ofException(Line line,
Exception e) |
static <T> Result<T> |
ofException(RecordParseException e) |
Optional<T> |
optional() |
public static <T> Result<List<T>> mixed(List<T> value, List<ParseError> parseErrorList)
public static <T> Result<T> of(T value)
public static <T> Result<T> ofException(RecordParseException e)
public abstract void addParseErrorTo(List<ParseError> parseErrorList)
public abstract T get()
public T list()
Copyright © 2016 Objectos Software LTDA. All rights reserved.