Exemple #1
0
 public static <T> Context<T> fail(AbstractError error) {
   Context<T> context = new Context<T>();
   context.error = error;
   return context;
 }
Exemple #2
0
 public static <T> Context<T> ok(T value) {
   Context<T> context = new Context<T>();
   context.value = value;
   return context;
 }