summaryrefslogtreecommitdiff
path: root/java-plan2/src/org/msgpack/GenericShort.java
blob: eb2463e309674c96bf60b2b1fff7bc288ebbbed1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
	}
}