Move case statement implementations
[yangtools.git] / data / yang-data-spi / src / main / java / org / opendaylight / yangtools / yang / data / spi / tree / Version.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.yang.data.spi.tree;
9
10 /**
11  * The concept of a version, either node version, or a subtree version. The
12  * only interface contract this class has is that no two versions are the
13  * same.
14  */
15 public final class Version {
16     private Version() {
17
18     }
19
20     /**
21      * Create a new version, distinct from any other version.
22      *
23      * @return a new version.
24      */
25     @SuppressWarnings("static-method")
26     public Version next() {
27         return new Version();
28     }
29
30     /**
31      * Create an initial version.
32      *
33      * @return a new version.
34      */
35     public static Version initial() {
36         return new Version();
37     }
38 }