public class DoubleType.DoubleEncoding extends Object
| Constructor and Description |
|---|
DoubleEncoding(EncoderImpl encoder,
DecoderImpl decoder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
encodesJavaPrimitive() |
boolean |
encodesSuperset(TypeEncoding<Double> encoding) |
int |
getConstructorSize() |
protected DecoderImpl |
getDecoder() |
protected EncoderImpl |
getEncoder() |
byte |
getEncodingCode() |
protected int |
getFixedSize() |
DoubleType |
getType() |
Class<T> |
getTypeClass() |
int |
getValueSize(T val) |
boolean |
isFixedSizeVal() |
double |
readPrimitiveValue() |
Double |
readValue() |
void |
skipValue() |
void |
write(double d) |
void |
writeConstructor() |
void |
writeValue(double val) |
void |
writeValue(Double val) |
public DoubleEncoding(EncoderImpl encoder, DecoderImpl decoder)
protected int getFixedSize()
public byte getEncodingCode()
getEncodingCode in interface PrimitiveTypeEncoding<Double>public DoubleType getType()
public void writeValue(Double val)
public void writeValue(double val)
public void write(double d)
public boolean encodesSuperset(TypeEncoding<Double> encoding)
public Double readValue()
public double readPrimitiveValue()
public boolean encodesJavaPrimitive()
encodesJavaPrimitive in interface TypeConstructor<Double>encodesJavaPrimitive in interface TypeEncoding<Double>public final boolean isFixedSizeVal()
public final int getValueSize(T val)
public final void skipValue()
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 © 2020 The Apache Software Foundation. All rights reserved.