public class ShortType.ShortEncoding extends Object
Constructor and Description |
---|
ShortEncoding(EncoderImpl encoder,
DecoderImpl decoder) |
Modifier and Type | Method and Description |
---|---|
boolean |
encodesJavaPrimitive() |
boolean |
encodesSuperset(TypeEncoding<Short> encoding) |
int |
getConstructorSize() |
protected DecoderImpl |
getDecoder() |
protected EncoderImpl |
getEncoder() |
byte |
getEncodingCode() |
protected int |
getFixedSize() |
ShortType |
getType() |
Class<T> |
getTypeClass() |
int |
getValueSize(T val) |
boolean |
isFixedSizeVal() |
short |
readPrimitiveValue() |
Short |
readValue() |
void |
write(short s) |
void |
writeConstructor() |
void |
writeValue(short val) |
void |
writeValue(Short val) |
public ShortEncoding(EncoderImpl encoder, DecoderImpl decoder)
protected int getFixedSize()
public byte getEncodingCode()
getEncodingCode
in interface PrimitiveTypeEncoding<Short>
public ShortType getType()
public void writeValue(Short val)
public void writeValue(short val)
public void write(short s)
public boolean encodesSuperset(TypeEncoding<Short> encoding)
public Short readValue()
public short readPrimitiveValue()
public boolean encodesJavaPrimitive()
encodesJavaPrimitive
in interface TypeConstructor<Short>
encodesJavaPrimitive
in interface TypeEncoding<Short>
public final boolean isFixedSizeVal()
public final int getValueSize(T val)
public final void writeConstructor()
writeConstructor
in interface PrimitiveTypeEncoding<T>
writeConstructor
in interface TypeEncoding<T>
public int getConstructorSize()
getConstructorSize
in interface PrimitiveTypeEncoding<T>
getConstructorSize
in interface TypeEncoding<T>
protected EncoderImpl getEncoder()
public Class<T> getTypeClass()
getTypeClass
in interface TypeConstructor<T>
protected DecoderImpl getDecoder()
Copyright © 2016 The Apache Software Foundation. All rights reserved.