BibChange achieved.
Two things stop a change from being applied. A ChangeSet applies best-effort, aborting
midway would leave the library in a state that is neither the old nor the new one, and that no
later undo could describe, so it reports the elements that threw. And a change that describes
one modification refuses when the library no longer holds the state it recorded, rather than
writing over whatever is there now.
| Modifier and Type | Class and Description |
|---|---|
| public static record | ApplyResult.
A change that was not applied, and why — the reason is for a log or a message, not for a caller to branch on. |
| Modifier and Type | Field and Description |
|---|---|
| private final List | failures
Record Component accessed by failures(). the changes that were not applied, in the order they were attempted |
| public static final ApplyResult | SUCCESS
Everything asked for was applied. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public List | |
| public final int | |
| public static ApplyResult | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| failures | back to summary |
|---|---|
| private final List<ApplyResult. Record Component accessed by failures(). the changes that were not applied, in the order they were attempted | |
| SUCCESS | back to summary |
|---|---|
| public static final ApplyResult SUCCESS Everything asked for was applied. | |
| ApplyResult | back to summary |
|---|---|
| public ApplyResult(List<ApplyResult. | |
| complete | back to summary |
|---|---|
| public boolean complete() | |
| 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).
| |
| failures | back to summary |
|---|---|
| public List Record Component getter of failures.
| |
| 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 | |
| of | back to summary |
|---|---|
| public static ApplyResult of(BibChange change, String reason) One change that was not applied. | |
| 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. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public BibChange | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public String | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| change | back to summary |
|---|---|
| private final BibChange change Record Component accessed by change(). | |
| reason | back to summary |
|---|---|
| private final String reason Record Component accessed by reason(). | |
| Failure | back to summary |
|---|---|
| public Failure(BibChange change, String reason) | |
| change | back to summary |
|---|---|
| public BibChange change() Record Component getter of change. | |
| 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).
| |
| 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 | |
| reason | back to summary |
|---|---|
| public String reason() Record Component getter of reason. | |
| 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. | |