Module org.refcodes.serial
Package org.refcodes.serial
Interface PacketMagicBytesAccessor.PacketMagicBytesProperty
- All Superinterfaces:
PacketMagicBytesAccessor,PacketMagicBytesAccessor.PacketMagicBytesMutator
- Enclosing interface:
- PacketMagicBytesAccessor
public static interface PacketMagicBytesAccessor.PacketMagicBytesProperty
extends PacketMagicBytesAccessor, PacketMagicBytesAccessor.PacketMagicBytesMutator
Provides a packet magic bytes property.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.serial.PacketMagicBytesAccessor
PacketMagicBytesAccessor.PacketMagicBytesBuilder<B extends PacketMagicBytesAccessor.PacketMagicBytesBuilder<B>>, PacketMagicBytesAccessor.PacketMagicBytesMutator, PacketMagicBytesAccessor.PacketMagicBytesProperty -
Method Summary
Modifier and TypeMethodDescriptiondefault byte[]letPacketMagicBytes(byte[] aPacketMagicBytes) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given character (setter) as ofPacketMagicBytesAccessor.PacketMagicBytesMutator.setPacketMagicBytes(byte[])and returns the very same value (getter).default StringletPacketMagicBytes(String aPacketMagicBytes) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given character (setter) as ofPacketMagicBytesAccessor.PacketMagicBytesMutator.setPacketMagicBytes(byte[])and returns the very same value (getter).default StringletPacketMagicBytes(String aPacketMagicBytes, 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 ofletPacketMagicBytes(byte[])and returns the very same value (getter).Methods inherited from interface org.refcodes.serial.PacketMagicBytesAccessor
getPacketMagicBytesMethods inherited from interface org.refcodes.serial.PacketMagicBytesAccessor.PacketMagicBytesMutator
setPacketMagicBytes, setPacketMagicBytes, setPacketMagicBytes
-
Method Details
-
letPacketMagicBytes
default byte[] letPacketMagicBytes(byte[] aPacketMagicBytes) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given character (setter) as ofPacketMagicBytesAccessor.PacketMagicBytesMutator.setPacketMagicBytes(byte[])and returns the very same value (getter).- Parameters:
aPacketMagicBytes- The character to set (viaPacketMagicBytesAccessor.PacketMagicBytesMutator.setPacketMagicBytes(byte[])).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
letPacketMagicBytes
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given character (setter) as ofPacketMagicBytesAccessor.PacketMagicBytesMutator.setPacketMagicBytes(byte[])and returns the very same value (getter). UsesTransmissionMetrics.DEFAULT_ENCODINGfor converting theStringinto a byte array.- Parameters:
aPacketMagicBytes- The character to set (viaPacketMagicBytesAccessor.PacketMagicBytesMutator.setPacketMagicBytes(byte[])).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
letPacketMagicBytes
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given byte array (setter) as ofletPacketMagicBytes(byte[])and returns the very same value (getter).- Parameters:
aPacketMagicBytes- 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.
-