Record Class ModuleFileTransactions.Reservation
java.lang.Object
java.lang.Record
com.ultikits.ultitools.utils.ModuleFileTransactions.Reservation
- Enclosing class:
ModuleFileTransactions
private static record ModuleFileTransactions.Reservation(UltiToolsPlugin module, File oldJar, String oldSha256, String previousFailure, ModuleFileTransactions.StageResult refusal)
extends Record
The loaded module and its JAR, or the reason it cannot be staged.
- Since:
- 6.3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UltiToolsPluginThe field for themodulerecord component.private final FileThe field for theoldJarrecord component.private final StringThe field for theoldSha256record component.private final StringThe field for thepreviousFailurerecord component.private final ModuleFileTransactions.StageResultThe field for therefusalrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateReservation(UltiToolsPlugin module, File oldJar, String oldSha256, String previousFailure, ModuleFileTransactions.StageResult refusal) Creates an instance of aReservationrecord 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.module()Returns the value of themodulerecord component.oldJar()Returns the value of theoldJarrecord component.Returns the value of theoldSha256record component.Returns the value of thepreviousFailurerecord component.refusal()Returns the value of therefusalrecord component.(package private) static ModuleFileTransactions.Reservationfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
module
The field for themodulerecord component. -
oldJar
The field for theoldJarrecord component. -
oldSha256
The field for theoldSha256record component. -
previousFailure
The field for thepreviousFailurerecord component. -
refusal
The field for therefusalrecord component.
-
-
Constructor Details
-
Reservation
private Reservation(UltiToolsPlugin module, File oldJar, String oldSha256, String previousFailure, ModuleFileTransactions.StageResult refusal) Creates an instance of aReservationrecord class.- Parameters:
module- the value for themodulerecord componentoldJar- the value for theoldJarrecord componentoldSha256- the value for theoldSha256record componentpreviousFailure- the value for thepreviousFailurerecord componentrefusal- the value for therefusalrecord component
-
-
Method Details
-
refused
-
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). -
module
Returns the value of themodulerecord component.- Returns:
- the value of the
modulerecord component
-
oldJar
Returns the value of theoldJarrecord component.- Returns:
- the value of the
oldJarrecord component
-
oldSha256
Returns the value of theoldSha256record component.- Returns:
- the value of the
oldSha256record component
-
previousFailure
Returns the value of thepreviousFailurerecord component.- Returns:
- the value of the
previousFailurerecord component
-
refusal
Returns the value of therefusalrecord component.- Returns:
- the value of the
refusalrecord component
-