Module org.refcodes.struct
Package org.refcodes.struct
Interface ByteArrayAccessor.ByteArrayProperty
- All Superinterfaces:
ByteArrayAccessor
,ByteArrayAccessor.ByteArrayMutator
- Enclosing interface:
- ByteArrayAccessor
public static interface ByteArrayAccessor.ByteArrayProperty
extends ByteArrayAccessor, ByteArrayAccessor.ByteArrayMutator
Provides a byte array property.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.struct.ByteArrayAccessor
ByteArrayAccessor.ByteArrayBuilder<B extends ByteArrayAccessor.ByteArrayBuilder<B>>, ByteArrayAccessor.ByteArrayMutator, ByteArrayAccessor.ByteArrayProperty
-
Method Summary
Modifier and TypeMethodDescriptiondefault byte[]
letBytes
(byte[] aBytes) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given byte array (setter) as ofByteArrayAccessor.ByteArrayMutator.setBytes(byte[])
and returns the very same value (getter).Methods inherited from interface org.refcodes.struct.ByteArrayAccessor
getBytes
Methods inherited from interface org.refcodes.struct.ByteArrayAccessor.ByteArrayMutator
setBytes
-
Method Details
-
letBytes
default byte[] letBytes(byte[] aBytes) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given byte array (setter) as ofByteArrayAccessor.ByteArrayMutator.setBytes(byte[])
and returns the very same value (getter).- Parameters:
aBytes
- The byte array to set (viaByteArrayAccessor.ByteArrayMutator.setBytes(byte[])
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-