01: /*
02: *
03: * Copyright (c) 2004 SourceTap - www.sourcetap.com
04: *
05: * The contents of this file are subject to the SourceTap Public License
06: * ("License"); You may not use this file except in compliance with the
07: * License. You may obtain a copy of the License at http://www.sourcetap.com/license.htm
08: * Software distributed under the License is distributed on an "AS IS" basis,
09: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
10: * the specific language governing rights and limitations under the License.
11: *
12: * The above copyright notice and this permission notice shall be included
13: * in all copies or substantial portions of the Software.
14: *
15: */
16:
17: package com.sourcetap.sfa.util;
18:
19: /**
20: * DOCUMENT ME!
21: *
22: */
23: public class MacInteger extends Number {
24: protected int value = 0;
25:
26: public MacInteger(int value_) {
27: this .value = value_;
28: }
29:
30: /**
31: * DOCUMENT ME!
32: *
33: * @param value
34: */
35: public void set(int value) {
36: this .value = value;
37: }
38:
39: /**
40: * DOCUMENT ME!
41: *
42: * @return
43: */
44: public int intValue() {
45: return value;
46: }
47:
48: /**
49: * DOCUMENT ME!
50: *
51: * @return
52: */
53: public long longValue() {
54: return (long) value;
55: }
56:
57: /**
58: * DOCUMENT ME!
59: *
60: * @return
61: */
62: public float floatValue() {
63: return (float) value;
64: }
65:
66: /**
67: * DOCUMENT ME!
68: *
69: * @return
70: */
71: public double doubleValue() {
72: return (double) value;
73: }
74: }
|