Record Class ProjectPackager.PackageResult

java.lang.Object
java.lang.Record
org.pkl.core.project.ProjectPackager.PackageResult
Enclosing class:
ProjectPackager

public static record ProjectPackager.PackageResult(Path zipFile, Path zipChecksumFile, Path metadataFile, Path metadataChecksumFile, String metadataChecksum) extends Record
  • Constructor Details

    • PackageResult

      public PackageResult(Path zipFile, Path zipChecksumFile, Path metadataFile, Path metadataChecksumFile, String metadataChecksum)
      Creates an instance of a PackageResult record class.
      Parameters:
      zipFile - the value for the zipFile record component
      zipChecksumFile - the value for the zipChecksumFile record component
      metadataFile - the value for the metadataFile record component
      metadataChecksumFile - the value for the metadataChecksumFile record component
      metadataChecksum - the value for the metadataChecksum record component
  • Method Details

    • getZipFile

      @Deprecated(forRemoval=true) public Path getZipFile()
      Deprecated, for removal: This API element is subject to removal in a future version.
      As of 0.28.0, replaced by zipFile().
    • getZipChecksumFile

      @Deprecated(forRemoval=true) public Path getZipChecksumFile()
      Deprecated, for removal: This API element is subject to removal in a future version.
      As of 0.28.0, replaced by zipChecksumFile().
    • getMetadataFile

      @Deprecated(forRemoval=true) public Path getMetadataFile()
      Deprecated, for removal: This API element is subject to removal in a future version.
      As of 0.28.0, replaced by metadataFile().
    • getMetadataChecksumFile

      @Deprecated(forRemoval=true) public Path getMetadataChecksumFile()
      Deprecated, for removal: This API element is subject to removal in a future version.
      As of 0.28.0, replaced by metadataChecksumFile().
    • getMetadataChecksum

      @Deprecated(forRemoval=true) public String getMetadataChecksum()
      Deprecated, for removal: This API element is subject to removal in a future version.
      As of 0.28.0, replaced by metadataChecksum().
    • 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.
    • zipFile

      public Path zipFile()
      Returns the value of the zipFile record component.
      Returns:
      the value of the zipFile record component
    • zipChecksumFile

      public Path zipChecksumFile()
      Returns the value of the zipChecksumFile record component.
      Returns:
      the value of the zipChecksumFile record component
    • metadataFile

      public Path metadataFile()
      Returns the value of the metadataFile record component.
      Returns:
      the value of the metadataFile record component
    • metadataChecksumFile

      public Path metadataChecksumFile()
      Returns the value of the metadataChecksumFile record component.
      Returns:
      the value of the metadataChecksumFile record component
    • metadataChecksum

      public String metadataChecksum()
      Returns the value of the metadataChecksum record component.
      Returns:
      the value of the metadataChecksum record component