| 注释类型 | 说明 |
|---|---|
| AsciiArrayType |
Ascii array type which use ascii charset, each character takes 1 byte, can be used to annotate field type of
Character[]/char[]/List
|
| AsciiType |
ASCII type which takes 1 byte, can be used to annotate field type of Character/char.
|
| AutoType |
FastProto is able to infer the annotation type based on the field type when using @AutoType.
|
| BinaryType |
Binary type, can be used to annotate field type of Byte[]/byte[].
|
| BoolArrayType |
Boolean array type, can be used to annotate field type of Boolean[]/boolean[]/List
|
| BoolType |
Boolean type, each unit takes 1 bit, can be used to annotate field type of Boolean/boolean.
|
| CharArrayType |
Character array type which use unicode charset, each character takes 2 byte, can be used to annotate field type of Character[]/char[].
|
| CharType |
Char type which use unicode charset, each character takes 2 bytes, it can be used to annotate field type of Character/char.
|
| DataType |
An annotation used to mark data type annotation.
|
| DecodingFormula |
The parsed result will be substituted into the decoding formula, and the final result will be assigned to the annotated field.
|
| DecodingIgnore |
Annotated field will be ignored when decoding.
|
| DefaultBitOrder |
FastProto uses LSB_0 by default, this annotation can modify the default bit order.
|
| DefaultByteOrder |
FastProto uses little endian by default, this annotation can modify the default byte order.
|
| DoubleArrayType |
/**
Double array type, each double takes 8 bytes, it can be used to annotate field type of Double[]/double[]/List
|
| DoubleType |
Double type which takes 8 bytes, it can be used to annotate field type of Double/double.
|
| EncodingFormula |
The value of annotated field will be substituted into the encoding formula, and the final result will be written into binary.
|
| EncodingIgnore |
Annotated field will be ignored when encoding.
|
| EnumType |
Boolean type, each unit takes 1 byte, can be used to annotate field type of enum.
|
| FloatArrayType |
Float array type, each float takes 4 bytes, it can be used to annotate field type of Float[]/float[]/List
|
| FloatType |
Float type which takes 4 bytes, it can be used to annotate field type of Float/float.
|
| Int16ArrayType |
Int16 array type, each element takes 2 byte, can be used to annotate field type of Integer[]/int[]/List
|
| Int16Type |
Int16 type which takes 2 bytes, it can be used to annotate field type of Integer/int.
|
| Int32ArrayType |
Int32 array type, each element takes 4 bytes, it can be used to annotate field type of Integer[]/int[]/List
|
| Int32Type |
Int16 type which takes 2 bytes, it can be used to annotate field type of Integer/int.
|
| Int64ArrayType |
Int64 array type, each element takes 8 bytes, it can be used to annotate field type of Long[]/long[]/List
|
| Int64Type |
Int64 type which takes 8 bytes, it can be used to annotate field type of Long/long.
|
| Int8ArrayType |
Int8 array type, each int8 takes 1 byte, it can be used to annotate field type of Byte[]/byte[]/Integer[]/int[]/
List
|
| Int8Type |
Int8 type which takes 1 byte, it can be used to annotate field type of Integer/int.
|
| StringType |
String type which uses utf-8 charset by default, it can be used to annotate field type of String/StringBuilder/StringBuffer.
|
| TimeType |
Time type which takes 8 bytes, it can be used to annotate field type of Timestamp/Date/Calendar/LocalDateTime/Instant.
|
| UInt16ArrayType |
UInt16 array type, each element takes 2 bytes, it can be used to annotate field type of Integer[]/int[]/List
|
| UInt16Type |
UInt16 type which takes 2 bytes, it can be used to annotate field type of Integer/int.
|
| UInt32ArrayType |
UInt32 array type, each element takes 4 bytes, it can be used to annotate field type of Integer[]/int[]/List
|
| UInt32Type |
UInt32 type which takes 4 bytes, it can be used to annotate field type of Long/long.
|
| UInt64ArrayType |
UInt64 array type, each element takes 8 bytes, it can be used to annotate field type of BitInteger[]/List
|
| UInt64Type |
UInt64 type which takes 8 bytes, it can be used to annotate field type of BitInteger.
|
| UInt8ArrayType |
UInt8 array type, each element takes 1 byte, it can be used to annotate field type of Integer[]/int[]/List
|
| UInt8Type |
UInt8 type which takes 1 byte, it can be used to annotate field type of Integer/int.
|
| Validator |
This annotation is used to mark validator classes for data type annotations.
|
Copyright © 2019–2023 indunet. All rights reserved.