org.apache.qpid.proton.codec
Class DoubleType.DoubleEncoding

java.lang.Object
  extended by org.apache.qpid.proton.codec.DoubleType.DoubleEncoding
All Implemented Interfaces:
PrimitiveTypeEncoding<Double>, TypeConstructor<Double>, TypeEncoding<Double>
Enclosing class:
DoubleType

public class DoubleType.DoubleEncoding
extends Object


Constructor Summary
DoubleType.DoubleEncoding(EncoderImpl encoder, DecoderImpl decoder)
           
 
Method Summary
 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 write(double d)
           
 void writeConstructor()
           
 void writeValue(double val)
           
 void writeValue(Double val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleType.DoubleEncoding

public DoubleType.DoubleEncoding(EncoderImpl encoder,
                                 DecoderImpl decoder)
Method Detail

getFixedSize

protected int getFixedSize()

getEncodingCode

public byte getEncodingCode()
Specified by:
getEncodingCode in interface PrimitiveTypeEncoding<Double>

getType

public DoubleType getType()

writeValue

public void writeValue(Double val)

writeValue

public void writeValue(double val)

write

public void write(double d)

encodesSuperset

public boolean encodesSuperset(TypeEncoding<Double> encoding)

readValue

public Double readValue()

readPrimitiveValue

public double readPrimitiveValue()

encodesJavaPrimitive

public boolean encodesJavaPrimitive()
Specified by:
encodesJavaPrimitive in interface TypeConstructor<Double>
Specified by:
encodesJavaPrimitive in interface TypeEncoding<Double>

isFixedSizeVal

public final boolean isFixedSizeVal()

getValueSize

public final int getValueSize(T val)

writeConstructor

public final void writeConstructor()
Specified by:
writeConstructor in interface PrimitiveTypeEncoding<T>
Specified by:
writeConstructor in interface TypeEncoding<T>

getConstructorSize

public int getConstructorSize()
Specified by:
getConstructorSize in interface PrimitiveTypeEncoding<T>
Specified by:
getConstructorSize in interface TypeEncoding<T>

getEncoder

protected EncoderImpl getEncoder()

getTypeClass

public Class<T> getTypeClass()
Specified by:
getTypeClass in interface TypeConstructor<T>

getDecoder

protected DecoderImpl getDecoder()


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.