File: NewNumber.java

package info (click to toggle)
mauve 20090924-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 27,152 kB
  • ctags: 22,350
  • sloc: java: 237,216; sh: 2,834; xml: 208; makefile: 64
file content (39 lines) | stat: -rw-r--r-- 515 bytes parent folder | download | duplicates (5)
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
30
31
32
33
34
35
36
37
38
39
// Tags: not-a-test
package gnu.testlet.java.lang.Number;

class NewNumber extends Number
{
	private int intfld; 
	public NewNumber()
	{
		super();
	}
	public NewNumber(int i)
	{
		intfld = i;
	}
	public int intValue()
	{
		return intfld;
	}
	public float floatValue()
	{
		return intfld;
	}
	public double doubleValue()
	{
		return intfld;
	}
	public long longValue()
	{
		return intfld;
	}
	public byte byteValue()
	{
		return super.byteValue();
	}
	public short shortValue()
	{
		return super.shortValue();
	}
}