Record Class JavaCodec
java.lang.Object
java.lang.Record
org.aksw.shellgebra.shim.cmd.JavaCodec
-
Constructor Summary
ConstructorsConstructorDescriptionJavaCodec(JavaStreamTransform decoder, JavaStreamTransform encoder) Creates an instance of aJavaCodecrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondecoder()Returns the value of thedecoderrecord component.encoder()Returns the value of theencoderrecord 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.
-
Constructor Details
-
JavaCodec
Creates an instance of aJavaCodecrecord class.- Parameters:
decoder- the value for thedecoderrecord componentencoder- the value for theencoderrecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
decoder
Returns the value of thedecoderrecord component.- Returns:
- the value of the
decoderrecord component
-
encoder
Returns the value of theencoderrecord component.- Returns:
- the value of the
encoderrecord component
-