Record Class BodyRef
java.lang.Object
java.lang.Record
com.shaft.capture.model.network.BodyRef
- Record Components:
ref- stable reference identifier or relative path to externalized body contentsha256- content digest of the referenced bodysizeBytes- size of the referenced body in bytesencoding- transfer or content encoding of the referenced bodytruncated- whether the referenced body was truncated when captured
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencoding()Returns the value of theencodingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.ref()Returns the value of therefrecord component.sha256()Returns the value of thesha256record component.longReturns the value of thesizeBytesrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetruncatedrecord component.
-
Constructor Details
-
BodyRef
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
ref
-
sha256
-
sizeBytes
-
encoding
-
truncated
-