/** * Construct a {@link Version} representing an unknown version number. * * @return an unknown {@link Version} */ public static Version unknown() { return new Version("unknown"); }
@Override public OperatingSystem getOperatingSystem() { return OperatingSystem.custom("Generic", "", OperatingSystem.Type.LINUX, Version.of("1.0")); }
@Override public int hashCode() { int result = name.hashCode(); result = 31 * result + releaseName.hashCode(); result = 31 * result + type.hashCode(); result = 31 * result + version.hashCode(); result = 31 * result + fileSeparator.hashCode(); result = 31 * result + pathSeparator.hashCode(); result = 31 * result + lineSeparator.hashCode(); return result; }
if (!version.equals(that.version))
/** * Obtains an {@link OperatingSystem} to represent an unknown {@link OperatingSystem}. * * @return an {@link OperatingSystem} */ public static OperatingSystem unknown() { return OperatingSystem.custom("", "", Type.UNKNOWN, Version.of(""), File.separator, File.pathSeparator, System.lineSeparator()); } }
@Override public int hashCode() { int result = name.hashCode(); result = 31 * result + releaseName.hashCode(); result = 31 * result + type.hashCode(); result = 31 * result + version.hashCode(); result = 31 * result + fileSeparator.hashCode(); result = 31 * result + pathSeparator.hashCode(); result = 31 * result + lineSeparator.hashCode(); return result; }
if (!version.equals(that.version))
/** * Obtains an {@link OperatingSystem} to represent an unknown {@link OperatingSystem}. * * @return an {@link OperatingSystem} */ public static OperatingSystem unknown() { return OperatingSystem.custom("", "", Type.UNKNOWN, Version.of(""), File.separator, File.pathSeparator, System.lineSeparator()); } }
/** * Constructs a {@link Version} by parsing the specified components of a version number. * If a component string itself contains components, those are parsed and included in the {@link Version}. * * @param strings the components of the {@link Version} number * * @return a {@link Version} */ public static Version of(String... strings) { return new Version(strings); }
release, type, Version.of(osVersion), type.getTypicalFileSeparator(), type.getTypicalPathSeparator(),
/** * Construct a {@link Version} representing an unknown version number. * * @return an unknown {@link Version} */ public static Version unknown() { return new Version("unknown"); }
release, type, Version.of(osVersion), type.getTypicalFileSeparator(), type.getTypicalPathSeparator(),
/** * Constructs a {@link Version} by parsing the specified components of a version number. * If a component string itself contains components, those are parsed and included in the {@link Version}. * * @param strings the components of the {@link Version} number * * @return a {@link Version} */ public static Version of(String... strings) { return new Version(strings); }