Record Class ApplicationBundle
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.ApplicationBundle
- Record Components:
path- bundle pathcoordinate- application coordinate, if already parsedsha256- bundle checksum when known
public record ApplicationBundle(Path path, ApplicationCoordinate coordinate, String sha256)
extends Record
Immutable handle to a ZIP-compatible
.j7m application bundle.
Creating this record does not verify or execute the bundle. Callers must use a verifier before activation.
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationBundle(Path path, ApplicationCoordinate coordinate, String sha256) Creates a bundle handle. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecoordinaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.sha256()Returns the value of thesha256record component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ApplicationBundle
Creates a bundle handle.
-
-
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). -
path
-
coordinate
Returns the value of thecoordinaterecord component.- Returns:
- the value of the
coordinaterecord component
-
sha256
-