Package org.microproxy.contentviews
Record Class Grpc.Frame
java.lang.Object
java.lang.Record
org.microproxy.contentviews.Grpc.Frame
- Record Components:
compressed- whether the compressed flag is setpayload- the payload, still compressed whencompressed(not copied)
- Enclosing class:
Grpc
One framed message, as it is on the wire.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecompressedrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.byte[]payload()Returns the value of thepayloadrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Frame
public Frame(boolean compressed, byte[] payload) Wraps a payload.- Parameters:
compressed- whether the compressed flag is setpayload- the payload
-
-
Method Details
-
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 '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
compressed
public boolean compressed()Returns the value of thecompressedrecord component.- Returns:
- the value of the
compressedrecord component
-
payload
public byte[] payload()Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-