Gets the value corresponding to the specified JNA Platform type @param osType The constant returned from JNA's com.sun.jna.Platform#getOSType() method. @return the value corresponding to the specified JNA Platform type
(int osType)
| 117 | * @return the value corresponding to the specified JNA Platform type |
| 118 | */ |
| 119 | public static PlatformEnum getValue(int osType) { |
| 120 | if (osType < 0 || osType >= UNKNOWN.ordinal()) { |
| 121 | return UNKNOWN; |
| 122 | } |
| 123 | return values()[osType]; |
| 124 | } |
| 125 | } |
no outgoing calls