| 程序包 | 说明 |
|---|---|
| org.indunet.fastproto | |
| org.indunet.fastproto.annotation.type | |
| org.indunet.fastproto.decoder | |
| org.indunet.fastproto.encoder | |
| org.indunet.fastproto.util |
| 限定符和类型 | 方法和说明 |
|---|---|
static ProtocolType |
ProtocolType.byAutoType(Type type) |
static ProtocolType |
ProtocolType.valueOf(Class<? extends Annotation> clazz) |
static ProtocolType |
ProtocolType.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ProtocolType[] |
ProtocolType.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 字段和说明 |
|---|---|
static ProtocolType[] |
TimestampType.PROTOCOL_TYPES |
static ProtocolType[] |
ListType.PROTOCOL_TYPES |
static ProtocolType[] |
DateType.PROTOCOL_TYPES |
static ProtocolType[] |
ArrayType.PROTOCOL_TYPES |
| 限定符和类型 | 方法和说明 |
|---|---|
T |
EnumDecoder.decode(@NonNull byte[] datagram,
int byteOffset,
@NonNull EndianPolicy policy,
@NonNull ProtocolType type,
@NonNull String fieldName,
@NonNull Class<T> enumClass) |
List |
ListDecoder.decode(@NonNull byte[] datagram,
int byteOffset,
int length,
@NonNull ProtocolType type,
@NonNull EndianPolicy policy) |
Object |
ArrayDecoder.decode(@NonNull byte[] datagram,
int byteOffset,
int length,
@NonNull ProtocolType type,
@NonNull EndianPolicy policy) |
Object |
ArrayDecoder.decode(@NonNull byte[] datagram,
int byteOffset,
int length,
@NonNull ProtocolType type,
@NonNull EndianPolicy policy,
boolean primitive) |
Timestamp |
TimestampDecoder.decode(@NonNull byte[] datagram,
int byteOffset,
@NonNull ProtocolType dataType,
@NonNull EndianPolicy policy,
@NonNull TimeUnit unit) |
Date |
DateDecoder.decode(@NonNull byte[] datagram,
int byteOffset,
@NonNull ProtocolType dataType,
@NonNull EndianPolicy policy,
@NonNull TimeUnit unit) |
int |
EnumDecoder.getCode(@NonNull byte[] datagram,
int byteOffset,
@NonNull EndianPolicy policy,
@NonNull ProtocolType type) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends Enum> |
EnumEncoder.encode(@NonNull byte[] datagram,
int byteOffset,
EndianPolicy policy,
@NonNull ProtocolType protocolType,
@NonNull String fieldName,
T value) |
void |
ListEncoder.encode(@NonNull byte[] datagram,
int byteOffset,
int length,
@NonNull ProtocolType type,
@NonNull EndianPolicy policy,
List<?> values) |
void |
ArrayEncoder.encode(@NonNull byte[] datagram,
int byteOffset,
int length,
@NonNull ProtocolType type,
@NonNull EndianPolicy policy,
Object values) |
void |
DateEncoder.encode(@NonNull byte[] datagram,
int byteOffset,
@NonNull ProtocolType dataType,
@NonNull EndianPolicy policy,
@NonNull TimeUnit unit,
@NonNull Date value) |
void |
TimestampEncoder.encode(@NonNull byte[] datagram,
int byteOffset,
@NonNull ProtocolType dataType,
@NonNull EndianPolicy policy,
@NonNull TimeUnit unit,
@NonNull Timestamp value) |
| 限定符和类型 | 方法和说明 |
|---|---|
static ProtocolType[] |
TypeUtils.protocolTypes(@NonNull Annotation typeAnnotation) |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
TypeUtils.size(@NonNull ProtocolType type) |
Copyright © 2019–2021 indunet. All rights reserved.