Record Class AtomicFileWriter.Outcome
java.lang.Object
java.lang.Record
io.jenkins.plugins.configsplice.engine.AtomicFileWriter.Outcome
- Enclosing class:
AtomicFileWriter
public static record AtomicFileWriter.Outcome(boolean atomicMoveUsed, boolean permissionsPreserved)
extends Record
What actually happened, for logging and for the gate 4 evidence record.
-
Constructor Summary
ConstructorsConstructorDescriptionOutcome(boolean atomicMoveUsed, boolean permissionsPreserved) Creates an instance of aOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theatomicMoveUsedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thepermissionsPreservedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Outcome
public Outcome(boolean atomicMoveUsed, boolean permissionsPreserved) Creates an instance of aOutcomerecord class.- Parameters:
atomicMoveUsed- the value for theatomicMoveUsedrecord componentpermissionsPreserved- the value for thepermissionsPreservedrecord component
-
-
Method Details
-
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 with '=='. -
atomicMoveUsed
public boolean atomicMoveUsed()Returns the value of theatomicMoveUsedrecord component.- Returns:
- the value of the
atomicMoveUsedrecord component
-
permissionsPreserved
public boolean permissionsPreserved()Returns the value of thepermissionsPreservedrecord component.- Returns:
- the value of the
permissionsPreservedrecord component
-