Record Class VcsOperations.SyncOutcome
java.lang.Object
java.lang.Record
network.ike.plugin.ws.vcs.VcsOperations.SyncOutcome
- Record Components:
selfHealed-truewhen a stale checkpoint was rewritten to the current HEAD because origin-parity was already independently confirmednote- text worth surfacing in a caller's report, ornullwhen there is nothing to report
- Enclosing class:
VcsOperations
Result of
VcsOperations.sync(File, Log) / VcsOperations.catchUp(File, Log): whether
a stale-but-safe .ike/vcs-state checkpoint was self-healed, and a
human-readable note for a goal's markdown report (ike-issues#819).-
Constructor Summary
ConstructorsConstructorDescriptionSyncOutcome(boolean selfHealed, String note) Creates an instance of aSyncOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.note()Returns the value of thenoterecord component.booleanReturns the value of theselfHealedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SyncOutcome
Creates an instance of aSyncOutcomerecord class.- Parameters:
selfHealed- the value for theselfHealedrecord componentnote- the value for thenoterecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
selfHealed
public boolean selfHealed()Returns the value of theselfHealedrecord component.- Returns:
- the value of the
selfHealedrecord component
-
note
-