26 package sun.management.counter.perf;
27
28 import sun.management.counter.*;
29
30 /**
31 * A snapshot of the perf counter for serialization.
32 */
33 class LongCounterSnapshot extends AbstractCounter
34 implements LongCounter {
35
36 long value;
37
38 // package private
39 LongCounterSnapshot(String name, Units u, Variability v, int flags,
40 long value) {
41 super(name, u, v, flags);
42 this.value = value;
43 }
44
45 public Object getValue() {
46 return new Long(value);
47 }
48
49 /**
50 * Get the value of this Long performance counter
51 */
52 public long longValue() {
53 return value;
54 }
55
56 private static final long serialVersionUID = 2054263861474565758L;
57 }
|
26 package sun.management.counter.perf;
27
28 import sun.management.counter.*;
29
30 /**
31 * A snapshot of the perf counter for serialization.
32 */
33 class LongCounterSnapshot extends AbstractCounter
34 implements LongCounter {
35
36 long value;
37
38 // package private
39 LongCounterSnapshot(String name, Units u, Variability v, int flags,
40 long value) {
41 super(name, u, v, flags);
42 this.value = value;
43 }
44
45 public Object getValue() {
46 return Long.valueOf(value);
47 }
48
49 /**
50 * Get the value of this Long performance counter
51 */
52 public long longValue() {
53 return value;
54 }
55
56 private static final long serialVersionUID = 2054263861474565758L;
57 }
|