mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 02:09:59 +00:00
29 lines
320 B
Java
29 lines
320 B
Java
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;
|
|
}
|
|
}
|
|
|