java.lang.Object
org.marid.proto.impl.codec.DoubleCodec
- All Implemented Interfaces:
Codec<java.lang.Double>
public class DoubleCodec
extends java.lang.Object
implements Codec<java.lang.Double>
- Since:
- 0.9
- Author:
- Dmitry Ovchinnikov.
-
Constructor Summary
Constructors
| Constructor |
Description |
DoubleCodec(int size) |
|
-
Method Summary
| Modifier and Type |
Method |
Description |
java.lang.Double |
decode(byte[] data) |
|
byte[] |
encode(java.lang.Double data) |
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
public DoubleCodec(int size)
-
Method Details
-
public java.lang.Double decode(byte[] data)
- Specified by:
decode in interface Codec<java.lang.Double>
-
public byte[] encode(java.lang.Double data)
- Specified by:
encode in interface Codec<java.lang.Double>