Merge branch 'master' of ../controller
[yangtools.git] / common / util / src / main / java / org / opendaylight / yangtools / util / DurationWithTime.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.yangtools.util;
9
10 /**
11  * Utility holder for a duration/time of occurance.
12  */
13 final class DurationWithTime {
14     private final long duration;
15     private final long timeMillis;
16
17     DurationWithTime(final long duration, final long timeMillis) {
18         this.duration = duration;
19         this.timeMillis = timeMillis;
20     }
21
22     long getDuration() {
23         return duration;
24     }
25
26     long getTimeMillis() {
27         return timeMillis;
28     }
29 }