Module org.refcodes.mixin
Package org.refcodes.mixin
Interface MagicBytesAccessor.MagicBytesProperty
- All Superinterfaces:
MagicBytesAccessor
,MagicBytesAccessor.MagicBytesMutator
- Enclosing interface:
- MagicBytesAccessor
public static interface MagicBytesAccessor.MagicBytesProperty
extends MagicBytesAccessor, MagicBytesAccessor.MagicBytesMutator
Provides a magic bytes property.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.MagicBytesAccessor
MagicBytesAccessor.MagicBytesBuilder<B extends MagicBytesAccessor.MagicBytesBuilder<B>>, MagicBytesAccessor.MagicBytesMutator, MagicBytesAccessor.MagicBytesProperty
-
Method Summary
Modifier and TypeMethodDescriptiondefault byte[]
letMagicBytes
(byte[] aMagicBytes) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given byte array (setter) as ofMagicBytesAccessor.MagicBytesMutator.setMagicBytes(byte[])
and returns the very same value (getter).default String
letMagicBytes
(String aMagicBytes) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given byte array (setter) as ofMagicBytesAccessor.MagicBytesMutator.setMagicBytes(byte[])
and returns the very same value (getter).default String
letMagicBytes
(String aMagicBytes, 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 ofMagicBytesAccessor.MagicBytesMutator.setMagicBytes(byte[])
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.MagicBytesAccessor
getMagicBytes
Methods inherited from interface org.refcodes.mixin.MagicBytesAccessor.MagicBytesMutator
setMagicBytes, setMagicBytes, setMagicBytes
-
Method Details
-
letMagicBytes
default byte[] letMagicBytes(byte[] aMagicBytes) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given byte array (setter) as ofMagicBytesAccessor.MagicBytesMutator.setMagicBytes(byte[])
and returns the very same value (getter).- Parameters:
aMagicBytes
- The byte array to set (viaMagicBytesAccessor.MagicBytesMutator.setMagicBytes(byte[])
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
letMagicBytes
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given byte array (setter) as ofMagicBytesAccessor.MagicBytesMutator.setMagicBytes(byte[])
and returns the very same value (getter). If not stated otherwise, theString
is converted using the platform encoding into an array of bytes.- Parameters:
aMagicBytes
- The magic bytes to be stored by the magic bytes property.- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
letMagicBytes
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given byte array (setter) as ofMagicBytesAccessor.MagicBytesMutator.setMagicBytes(byte[])
and returns the very same value (getter).- Parameters:
aMagicBytes
- 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.
-