Package org.aksw.iguana.cc.worker
Record Class ResponseBodyProcessor.Key
java.lang.Object
java.lang.Record
org.aksw.iguana.cc.worker.ResponseBodyProcessor.Key
- Enclosing class:
- ResponseBodyProcessor
-
Constructor Summary
ConstructorsConstructorDescriptionKey(long contentLength, long xxh64) Creates an instance of aKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecontentLengthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longxxh64()Returns the value of thexxh64record component.
-
Constructor Details
-
Key
public Key(long contentLength, long xxh64) Creates an instance of aKeyrecord class.- Parameters:
contentLength- the value for thecontentLengthrecord componentxxh64- the value for thexxh64record component
-
-
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. All components in this record class are compared with '=='. -
contentLength
public long contentLength()Returns the value of thecontentLengthrecord component.- Returns:
- the value of the
contentLengthrecord component
-
xxh64
public long xxh64()Returns the value of thexxh64record component.- Returns:
- the value of the
xxh64record component
-