Record Class ModuleFileTransactions.StartOutcome
java.lang.Object
java.lang.Record
com.ultikits.ultitools.utils.ModuleFileTransactions.StartOutcome
- Enclosing class:
ModuleFileTransactions
@Internal
public static record ModuleFileTransactions.StartOutcome(PendingChanges.Kind kind, String module, String fromVersion, String toVersion, ModuleFileTransactions.StartOutcome.Result result)
extends Record
A decision observed at this start; kept in memory until shutdown.
- Since:
- 6.3.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe result of trying to apply a change. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thefromVersionrecord component.private final PendingChanges.KindThe field for thekindrecord component.private final StringThe field for themodulerecord component.private final ModuleFileTransactions.StartOutcome.ResultThe field for theresultrecord component.private final StringThe field for thetoVersionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStartOutcome(PendingChanges.Kind kind, String module, String fromVersion, String toVersion, ModuleFileTransactions.StartOutcome.Result result) Creates an instance of aStartOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefromVersionrecord component.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.module()Returns the value of themodulerecord component.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetoVersionrecord component.
-
Field Details
-
kind
The field for thekindrecord component. -
module
The field for themodulerecord component. -
fromVersion
The field for thefromVersionrecord component. -
toVersion
The field for thetoVersionrecord component. -
result
The field for theresultrecord component.
-
-
Constructor Details
-
StartOutcome
public StartOutcome(PendingChanges.Kind kind, String module, String fromVersion, String toVersion, ModuleFileTransactions.StartOutcome.Result result) Creates an instance of aStartOutcomerecord class.- Parameters:
kind- the value for thekindrecord componentmodule- the value for themodulerecord componentfromVersion- the value for thefromVersionrecord componenttoVersion- the value for thetoVersionrecord componentresult- the value for theresultrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
module
Returns the value of themodulerecord component.- Returns:
- the value of the
modulerecord component
-
fromVersion
Returns the value of thefromVersionrecord component.- Returns:
- the value of the
fromVersionrecord component
-
toVersion
Returns the value of thetoVersionrecord component.- Returns:
- the value of the
toVersionrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-