Module org.refcodes.serial
Package org.refcodes.serial
Interface PingMagicBytesAccessor.PingMagicBytesBuilder<B extends PingMagicBytesAccessor.PingMagicBytesBuilder<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:
- PingMagicBytesAccessor
public static interface PingMagicBytesAccessor.PingMagicBytesBuilder<B extends PingMagicBytesAccessor.PingMagicBytesBuilder<B>>
Provides a builder method for a ping magic bytes property returning the
builder for applying multiple build operations.
-
Method Summary
Modifier and TypeMethodDescriptionwithPingMagicBytes(byte[] aPingMagicBytes) Sets the magic bytes for the ping magic bytes property.default BwithPingMagicBytes(String aPingMagicBytes) Sets the magic bytes for the ping magic bytes property.default BwithPingMagicBytes(String aPingMagicBytes, Charset aEncoding) Sets the magic bytes for the ping magic bytes property.
-
Method Details
-
withPingMagicBytes
Sets the magic bytes for the ping magic bytes property.- Parameters:
aPingMagicBytes- The magic bytes to be stored by the ping magic bytes property.- Returns:
- The builder for applying multiple build operations.
-
withPingMagicBytes
Sets the magic bytes for the ping magic bytes property.- Parameters:
aPingMagicBytes- The magic bytes to be stored by the magic bytes property. UsesTransmissionMetrics.DEFAULT_ENCODINGfor converting theStringinto a byte array.- Returns:
- the b
-
withPingMagicBytes
Sets the magic bytes for the ping magic bytes property.- Parameters:
aPingMagicBytes- 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.
-