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 Details

    • module

      private final UltiToolsPlugin module
      The field for the module record component.
    • oldJar

      private final File oldJar
      The field for the oldJar record component.
    • oldSha256

      private final String oldSha256
      The field for the oldSha256 record component.
    • previousFailure

      private final String previousFailure
      The field for the previousFailure record component.
    • refusal

      private final ModuleFileTransactions.StageResult refusal
      The field for the refusal record component.
  • Constructor Details

    • Reservation

      private Reservation(UltiToolsPlugin module, File oldJar, String oldSha256, String previousFailure, ModuleFileTransactions.StageResult refusal)
      Creates an instance of a Reservation record class.
      Parameters:
      module - the value for the module record component
      oldJar - the value for the oldJar record component
      oldSha256 - the value for the oldSha256 record component
      previousFailure - the value for the previousFailure record component
      refusal - the value for the refusal record component
  • Method Details

    • refused

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • module

      public UltiToolsPlugin module()
      Returns the value of the module record component.
      Returns:
      the value of the module record component
    • oldJar

      public File oldJar()
      Returns the value of the oldJar record component.
      Returns:
      the value of the oldJar record component
    • oldSha256

      public String oldSha256()
      Returns the value of the oldSha256 record component.
      Returns:
      the value of the oldSha256 record component
    • previousFailure

      public String previousFailure()
      Returns the value of the previousFailure record component.
      Returns:
      the value of the previousFailure record component
    • refusal

      Returns the value of the refusal record component.
      Returns:
      the value of the refusal record component