@Retention(value=RUNTIME) @Target(value={ANNOTATION_TYPE,FIELD,PARAMETER}) public @interface LongConversion
LongConverter
implementation with another annotation. Custom marker annotations (for
example @Hexadecimal or @Base64) can declare which converter
should be applied when serialising or deserialising long fields or
parameters. The referenced converter annotation should either have a static
final instance named `INSTANCE` or should be a LongConverter
Example usage:
@LongConversion(HexadecimalLongConverter.class)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
public @interface MyHexFormat {
LongConverter INSTANCE = new MyHexFormatConverter("0123456789ABCDEF");
}
LongConverterpublic abstract Class<?> value
The LongConverter class to be used for conversion.
The class specified should either have a static final field named INSTANCE,
or a constructor that takes a single string parameter for initialization.
Copyright © 2026 Chronicle Software Ltd. All rights reserved.