mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 10:19:51 +00:00
import MessagePack for Java implementation plan 2
This commit is contained in:
parent
93a95725fc
commit
e39e1d4f60
48 changed files with 3676 additions and 0 deletions
29
java-plan2/src/org/msgpack/GenericShort.java
Normal file
29
java-plan2/src/org/msgpack/GenericShort.java
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
package org.msgpack;
|
||||
|
||||
public class GenericShort extends GenericObject {
|
||||
short value;
|
||||
|
||||
public GenericShort(short value)
|
||||
{
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public short asShort()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int asInt()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long asLong()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue