Package org.symbol.sdk
Record Class MessageEncoderResult
java.lang.Object
java.lang.Record
org.symbol.sdk.MessageEncoderResult
- Record Components:
isDecoded-truewhen the message was successfully decoded and decrypted.message- Cleartext bytes when decoded; original encoded payload otherwise.
- MessageEncoderResult
- Result of a
tryDecodeoperation on aMessageEncoder. When not decoded,messageechoes back the original encoded payload (rawbyte[]for Symbol; originalMessageobject for NEM).
-
Constructor Summary
ConstructorsConstructorDescriptionMessageEncoderResult(boolean isDecoded, Object message) Creates an instance of aMessageEncoderResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.booleanReturns the value of theisDecodedrecord component.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
equals
- MessageEncoderResult.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 with
Objects::equals(Object,Object); primitive components are compared with '=='.
-
hashCode
public int hashCode()- MessageEncoderResult.hashCode
- Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
-
toString
- MessageEncoderResult.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.
-
isDecoded
public boolean isDecoded()- MessageEncoderResult.isDecoded
- Returns the value of the
isDecodedrecord component.
- Returns:
- the value of the
isDecodedrecord component
-
message
- MessageEncoderResult.message
- Returns the value of the
messagerecord component.
- Returns:
- the value of the
messagerecord component
-