001package ca.uhn.fhir.util;
002
003/*-
004 * #%L
005 * HAPI FHIR - Core Library
006 * %%
007 * Copyright (C) 2014 - 2021 Smile CDR, Inc.
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 *
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 *
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023public enum VersionEnum {
024        V0_1,
025        V0_2,
026        V0_3,
027        V0_4,
028        V0_5,
029        V0_6,
030        V0_7,
031        V0_8,
032        V0_9,
033
034        V1_0,
035        V1_1,
036        V1_2,
037        V1_3,
038        V1_4,
039        V1_5,
040        V1_6,
041
042        V2_0,
043        V2_1,
044        V2_2,
045        V2_3,
046        V2_4,
047        V2_5,
048        V2_5_0,
049        V3_0_0,
050        V3_1_0,
051        V3_2_0,
052        V3_3_0,
053        V3_4_0,
054        V3_5_0,
055        V3_6_0,
056        V3_7_0,
057        V3_8_0,
058        V4_0_0,
059        V4_0_3,
060        V4_1_0,
061        V4_2_0,
062        @Deprecated
063        V4_3_0, // 4.3.0 was renamed to 5.0.0 during the cycle
064        V5_0_0,
065        V5_0_1,
066        V5_0_2,
067        V5_1_0,
068        V5_2_0,
069        V5_2_1,
070        V5_3_0,
071        V5_3_1,
072        V5_3_2,
073        V5_3_3,
074        V5_4_0,
075        V5_4_1,
076        V5_4_2,
077        V5_5_0,
078        V5_5_1,
079
080        ;
081
082        public static VersionEnum latestVersion() {
083                VersionEnum[] values = VersionEnum.values();
084                return values[values.length - 1];
085        }
086}