Module org.junitpioneer
Annotation Type NumberToByteArrayConversion
-
@Target(PARAMETER) @Retention(RUNTIME) @ConvertWith(NumberToByteArrayArgumentConverter.class) public @interface NumberToByteArrayConversion
Annotation to convert an integral type (byte, short, int, long) to a byte array. The converter usesByteBufferunder the hood.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description NumberToByteArrayConversion.ByteOrderorderThe byte order to use during the conversion.
-
-
-
Element Detail
-
order
NumberToByteArrayConversion.ByteOrder order
The byte order to use during the conversion. Note that this is NOTByteOrderbecause that is not an enum (and can not be used in an annotation).- Returns:
- the byte order to use, either
BIG_ENDIANorLITTLE_ENDIAN.
- Default:
- org.junitpioneer.jupiter.converter.NumberToByteArrayConversion.ByteOrder.BIG_ENDIAN
-
-