Package org.openstreetmap.josm.tools
Enum Class Platform
- All Implemented Interfaces:
Serializable,Comparable<Platform>,Constable
Enum listing the supported platforms (operating system families).
- Since:
- 12776
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <T> Taccept(PlatformVisitor<T> visitor) Support for the visitor pattern.static PlatformIdentifies the current operating system family.static PlatformReturns the enum constant of this class with the specified name.static Platform[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNIXOID
Unix-like platform. This is the default when the platform cannot be identified. -
WINDOWS
Windows platform. -
OSX
macOS (previously OS X) platform.
-
-
Field Details
-
platform
-
-
Constructor Details
-
Platform
private Platform()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
accept
Support for the visitor pattern.- Type Parameters:
T- type that will be the result of the visiting operation- Parameters:
visitor- the visitor- Returns:
- result of the operation
-
determinePlatform
Identifies the current operating system family.- Returns:
- the the current operating system family
-