public class Element extends java.lang.Object implements ElementSerializable
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
calculateValue() |
void |
fillFieldsFromValue() |
static Element |
fromByteBuf(io.netty.buffer.ByteBuf byteBuf) |
int |
getIndex() |
byte |
getPermission() |
int |
getTimestamp() |
int |
getTtl() |
byte |
getTtlType() |
java.lang.String |
getType() |
byte[] |
getValue() |
static Element[] |
listFromByteBuf(io.netty.buffer.ByteBuf byteBuf) |
void |
setIndex(int index) |
void |
setPermission(byte permission) |
void |
setTimestamp(int timestamp) |
void |
setTtl(int ttl) |
void |
setTtlType(byte ttlType) |
void |
setType(java.lang.String type) |
void |
setValue(byte[] value) |
void |
toByteBuf(io.netty.buffer.ByteBuf byteBuf) |
static void |
toByteBuf(Element[] elements,
io.netty.buffer.ByteBuf byteBuf) |
public Element()
public Element(Element element)
public static Element[] listFromByteBuf(io.netty.buffer.ByteBuf byteBuf)
public static void toByteBuf(Element[] elements, io.netty.buffer.ByteBuf byteBuf)
public static Element fromByteBuf(io.netty.buffer.ByteBuf byteBuf)
public void toByteBuf(io.netty.buffer.ByteBuf byteBuf)
public int getIndex()
public void setIndex(int index)
public java.lang.String getType()
public void setType(java.lang.String type)
public byte[] getValue()
public void setValue(byte[] value)
public byte getPermission()
public void setPermission(byte permission)
public byte getTtlType()
public void setTtlType(byte ttlType)
public int getTtl()
public void setTtl(int ttl)
public int getTimestamp()
public void setTimestamp(int timestamp)
public void fillFieldsFromValue()
fillFieldsFromValue 在接口中 ElementSerializablepublic byte[] calculateValue()
calculateValue 在接口中 ElementSerializable