MCPcopy Index your code
hub / github.com/oshi/oshi / getValue

Method getValue

oshi-core/src/main/java/oshi/PlatformEnum.java:119–124  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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}

Callers 4

getNameMethod · 0.95
SystemInfoClass · 0.95
printProcessesMethod · 0.45
testReadProcIoMethod · 0.45

Calls

no outgoing calls

Tested by 2

printProcessesMethod · 0.36
testReadProcIoMethod · 0.36