Package panda.std

Class Result<VALUE,ERROR>

java.lang.Object
panda.std.Result<VALUE,ERROR>
Type Parameters:
VALUE - type of value
ERROR - type of error

public class Result<VALUE,ERROR> extends Object
Result represents value or associated error that caused the absence of the expected value. By definition, Result has to contain one non-null value - the value or the error. If you want to use nullable value or nullable error, you have to use wrapper like Option to explicitly declare it.