Record Class AutoFetch.Outcome
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.app.git.AutoFetch.Outcome
- Enclosing class:
AutoFetch
public static record AutoFetch.Outcome(List<String> fetched, Map<String,String> failed)
extends Record
What one automatic fetch did, for the policy and for the single message to the user.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.failed()Returns the value of thefailedrecord component.fetched()Returns the value of thefetchedrecord component.final inthashCode()Returns a hash code value for this object.booleanThe failures that only a sign-in can fix: automatic fetching never asks for a password.booleanok()Whether every remote was fetched.reasons()The failures as one line:remote: reason; ….final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Outcome
Creates an instance of aOutcomerecord class.- Parameters:
fetched- the value for thefetchedrecord componentfailed- the value for thefailedrecord component
-
-
Method Details
-
ok
public boolean ok()Whether every remote was fetched. -
needsSignIn
public boolean needsSignIn()The failures that only a sign-in can fix: automatic fetching never asks for a password. -
reasons
The failures as one line:remote: reason; …. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
fetched
Returns the value of thefetchedrecord component.- Returns:
- the value of the
fetchedrecord component
-
failed
Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-