Record Class WorkspaceProjectionApplier.ProjectionPayload
java.lang.Object
java.lang.Record
io.agentscope.harness.agent.sandbox.WorkspaceProjectionApplier.ProjectionPayload
- Record Components:
hash- deterministic hash over projected file paths and bytestarBytes- tar archive containing projected filesfileCount- number of projected files
- Enclosing class:
- WorkspaceProjectionApplier
public static record WorkspaceProjectionApplier.ProjectionPayload(String hash, byte[] tarBytes, int fileCount)
extends Record
Projection result used at sandbox start.
-
Constructor Summary
ConstructorsConstructorDescriptionProjectionPayload(String hash, byte[] tarBytes, int fileCount) Creates an instance of aProjectionPayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefileCountrecord component.hash()Returns the value of thehashrecord component.final inthashCode()Returns a hash code value for this object.byte[]tarBytes()Returns the value of thetarBytesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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. -
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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
hash
Returns the value of thehashrecord component.- Returns:
- the value of the
hashrecord component
-
tarBytes
public byte[] tarBytes()Returns the value of thetarBytesrecord component.- Returns:
- the value of the
tarBytesrecord component
-
fileCount
public int fileCount()Returns the value of thefileCountrecord component.- Returns:
- the value of the
fileCountrecord component
-