1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
package org.slcl.core; public final class Result<T> { public final boolean success; public final T error; public Result() { success = true; error = null; } public Result(final T error) { success = false; this.error = error; } }