Module org.refcodes.serial
Package org.refcodes.serial
Interface PongMagicBytesAccessor.PongMagicBytesBuilder<B extends PongMagicBytesAccessor.PongMagicBytesBuilder<B>>
- Type Parameters:
B- The builder to return in order to be able to apply multiple build operations.
- All Known Implementing Classes:
TransmissionMetrics.Builder
- Enclosing interface:
- PongMagicBytesAccessor
public static interface PongMagicBytesAccessor.PongMagicBytesBuilder<B extends PongMagicBytesAccessor.PongMagicBytesBuilder<B>>
Provides a builder method for a pong magic bytes property returning the
builder for applying multiple build operations.
-
Method Summary
Modifier and TypeMethodDescriptionwithPongMagicBytes(byte[] aPongMagicBytes) Sets the magic bytes for the pong magic bytes property.default BwithPongMagicBytes(String aPongMagicBytes) Sets the magic bytes for the pong magic bytes property.default BwithPongMagicBytes(String aPongMagicBytes, Charset aEncoding) Sets the magic bytes for the pong magic bytes property.
-
Method Details
-
withPongMagicBytes
Sets the magic bytes for the pong magic bytes property.- Parameters:
aPongMagicBytes- The magic bytes to be stored by the pong magic bytes property.- Returns:
- The builder for applying multiple build operations.
-
withPongMagicBytes
Sets the magic bytes for the pong magic bytes property.- Parameters:
aPongMagicBytes- The magic bytes to be stored by the magic bytes property. UsesTransmissionMetrics.DEFAULT_ENCODINGfor converting theStringinto a byte array.- Returns:
- the b
-
withPongMagicBytes
Sets the magic bytes for the pong magic bytes property.- Parameters:
aPongMagicBytes- The magic bytes to be stored by the magic bytes property.aEncoding- The string's bytes are converted using the givenCharset.- Returns:
- The builder for applying multiple build operations.
-