Module org.refcodes.serial
Package org.refcodes.serial
Interface PongMagicBytesAccessor.PongMagicBytesProperty
- All Superinterfaces:
PongMagicBytesAccessor,PongMagicBytesAccessor.PongMagicBytesMutator
- Enclosing interface:
- PongMagicBytesAccessor
public static interface PongMagicBytesAccessor.PongMagicBytesProperty
extends PongMagicBytesAccessor, PongMagicBytesAccessor.PongMagicBytesMutator
Provides a pong magic bytes property.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.serial.PongMagicBytesAccessor
PongMagicBytesAccessor.PongMagicBytesBuilder<B extends PongMagicBytesAccessor.PongMagicBytesBuilder<B>>, PongMagicBytesAccessor.PongMagicBytesMutator, PongMagicBytesAccessor.PongMagicBytesProperty -
Method Summary
Modifier and TypeMethodDescriptiondefault byte[]letPongMagicBytes(byte[] aPongMagicBytes) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given character (setter) as ofPongMagicBytesAccessor.PongMagicBytesMutator.setPongMagicBytes(byte[])and returns the very same value (getter).default StringletPongMagicBytes(String aPongMagicBytes) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given character (setter) as ofPongMagicBytesAccessor.PongMagicBytesMutator.setPongMagicBytes(byte[])and returns the very same value (getter).default StringletPongMagicBytes(String aPongMagicBytes, Charset aEncoding) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given byte array (setter) as ofletPongMagicBytes(byte[])and returns the very same value (getter).Methods inherited from interface org.refcodes.serial.PongMagicBytesAccessor
getPongMagicBytesMethods inherited from interface org.refcodes.serial.PongMagicBytesAccessor.PongMagicBytesMutator
setPongMagicBytes, setPongMagicBytes, setPongMagicBytes
-
Method Details
-
letPongMagicBytes
default byte[] letPongMagicBytes(byte[] aPongMagicBytes) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given character (setter) as ofPongMagicBytesAccessor.PongMagicBytesMutator.setPongMagicBytes(byte[])and returns the very same value (getter).- Parameters:
aPongMagicBytes- The character to set (viaPongMagicBytesAccessor.PongMagicBytesMutator.setPongMagicBytes(byte[])).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
letPongMagicBytes
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given character (setter) as ofPongMagicBytesAccessor.PongMagicBytesMutator.setPongMagicBytes(byte[])and returns the very same value (getter). UsesTransmissionMetrics.DEFAULT_ENCODINGfor converting theStringinto a byte array.- Parameters:
aPongMagicBytes- The character to set (viaPongMagicBytesAccessor.PongMagicBytesMutator.setPongMagicBytes(byte[])).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
letPongMagicBytes
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given byte array (setter) as ofletPongMagicBytes(byte[])and returns the very same value (getter).- Parameters:
aPongMagicBytes- The magic bytes to be stored by the magic bytes property.aEncoding- The string's bytes are converted using the givenCharset.- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-