de.flapdoodle.os.linux.UbuntuVersion Maven / Gradle / Ivy
The newest version!
/*
* Copyright (C) 2020
* Michael Mosmann
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.flapdoodle.os.linux;
import de.flapdoodle.os.Version;
import de.flapdoodle.os.common.DistinctPeculiarity;
import de.flapdoodle.os.common.HasPecularities;
import de.flapdoodle.os.common.Peculiarity;
import java.util.List;
public enum UbuntuVersion implements Version {
Ubuntu_16_04(OsReleaseFiles.osReleaseFileVersionMatches("16.04")),
Ubuntu_16_10(OsReleaseFiles.osReleaseFileVersionMatches("16.10")),
Ubuntu_18_04(OsReleaseFiles.osReleaseFileVersionMatches("18.04")),
Ubuntu_18_10(OsReleaseFiles.osReleaseFileVersionMatches("18.10")),
Ubuntu_19_04(OsReleaseFiles.osReleaseFileVersionMatches("19.04")),
Ubuntu_19_10(OsReleaseFiles.osReleaseFileVersionMatches("19.10")),
Ubuntu_20_04(OsReleaseFiles.osReleaseFileVersionMatches("20.04")),
Ubuntu_20_10(OsReleaseFiles.osReleaseFileVersionMatches("20.10")),
Ubuntu_21_04(OsReleaseFiles.osReleaseFileVersionMatches("21.04")),
Ubuntu_21_10(OsReleaseFiles.osReleaseFileVersionMatches("21.10")),
Ubuntu_22_04(OsReleaseFiles.osReleaseFileVersionMatches("22.04")),
Ubuntu_22_10(OsReleaseFiles.osReleaseFileVersionMatches("22.10")),
Ubuntu_23_04(OsReleaseFiles.osReleaseFileVersionMatches("23.04")),
Ubuntu_23_10(OsReleaseFiles.osReleaseFileVersionMatches("23.10")),
Ubuntu_24_04(OsReleaseFiles.osReleaseFileVersionMatches("24.04")),
;
private final List peculiarities;
UbuntuVersion(DistinctPeculiarity... peculiarities) {
this.peculiarities = HasPecularities.asList(peculiarities);
}
@Override
public List pecularities() {
return peculiarities;
}
}