01: /*
02: * $Id: AbstractTimeValue.java 455983 2005-02-22 17:48:25Z jonl $
03: * $Revision: 455983 $ $Date: 2005-02-22 18:48:25 +0100 (Tue, 22 Feb 2005) $
04: *
05: * ==============================================================================
06: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
07: * use this file except in compliance with the License. You may obtain a copy of
08: * the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15: * License for the specific language governing permissions and limitations under
16: * the License.
17: */
18: package wicket.util.time;
19:
20: import wicket.util.value.LongValue;
21:
22: /**
23: * Package local class for representing immutable time values in milliseconds
24: * and typical operations on such values.
25: *
26: * @author Jonathan Locke
27: */
28: abstract class AbstractTimeValue extends LongValue {
29: /**
30: * Package local constructor for package subclasses only
31: *
32: * @param milliseconds
33: * The number of milliseconds in this time value
34: */
35: AbstractTimeValue(final long milliseconds) {
36: super (milliseconds);
37: }
38:
39: /**
40: * @return Number of milliseconds in this abstract time value
41: */
42: public final long getMilliseconds() {
43: return value;
44: }
45: }
|