| Modifier and Type | Field and Description |
|---|---|
| private final Collection | |
| private final Optional |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static boolean | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public Collection | |
| public Optional | |
| public <U> Result | |
| public boolean | |
| public final int | |
| public boolean | |
| public <U> Result | |
| public <U> Result | |
| public static <T> Result | |
| public static <T, E extends Exception> Result | |
| public static <T> Result | |
| public static <T> Result | |
| public static <T> Result | |
| public T | |
| public Result | |
| public Result | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public Optional |
| errors | back to summary |
|---|---|
| private final Collection<? extends Exception> errors Record Component accessed by errors(). | |
| value | back to summary |
|---|---|
| private final Optional<T> value Record Component accessed by value(). | |
| Result | back to summary |
|---|---|
| public Result(Optional<T> value, Collection<? extends Exception> errors) | |
| allHaveValues | back to summary |
|---|---|
| public static boolean allHaveValues(Iterable<? extends Result<?>> results) | |
| allHaveValues | back to summary |
|---|---|
| public static boolean allHaveValues(Result<?>... results) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| errors | back to summary |
|---|---|
| public Collection Record Component getter of errors. | |
| firstError | back to summary |
|---|---|
| public Optional | |
| flatMap | back to summary |
|---|---|
| public <U> Result | |
| hasErrors | back to summary |
|---|---|
| public boolean hasErrors() | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| hasValue | back to summary |
|---|---|
| public boolean hasValue() | |
| map | back to summary |
|---|---|
| public <U> Result | |
| mapErrors | back to summary |
|---|---|
public <U> Result
| |
| of | back to summary |
|---|---|
| public static <T> Result | |
| of | back to summary |
|---|---|
| public static <T, E extends Exception> Result | |
| ofError | back to summary |
|---|---|
| public static <T> Result | |
| ofErrors | back to summary |
|---|---|
| public static <T> Result | |
| ofValue | back to summary |
|---|---|
| public static <T> Result | |
| orElseThrow | back to summary |
|---|---|
| public T orElseThrow() | |
| peekErrors | back to summary |
|---|---|
| public Result | |
| peekValue | back to summary |
|---|---|
| public Result | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| value | back to summary |
|---|---|
| public Optional Record Component getter of value. | |