Platform
enum Platform
Package: dev.joid.lib.utils.platform · Module: core · Source: Platform.java
Operating system that JOID runs on, and where it keeps its cache there.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
Platform | current() factory | Returns the system named by the os.name property: macOS for a name with mac or darwin, Windows for a name with win, Linux otherwise. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
boolean | is64Bit() static | If true, the os.arch property names a 64-bit architecture. |
File | getCacheDir(String home, Function<String,String> environment) | Returns the cache folder of the user of the folder home on this system, reading the environment variables through environment: %LOCALAPPDATA% (or AppData/Local) on Windows, Library/Caches on macOS, $XDG_CACHE_HOME (or .cache) on Linux. |
Values
Section titled “Values”| Value | Summary |
|---|---|
WINDOWS | Windows. |
MACOS | macOS. |
LINUX | Linux, and every system that is neither Windows nor macOS. |
Creation details
Section titled “Creation details”current
Section titled “current”Platform current() factory
Returns the system named by the os.name property: macOS for a name with mac or darwin, Windows for a name with win, Linux otherwise.
Method details
Section titled “Method details”is64Bit
Section titled “is64Bit”boolean is64Bit() static
If true, the os.arch property names a 64-bit architecture.
getCacheDir
Section titled “getCacheDir”File getCacheDir(String home, Function<String,String> environment)
Returns the cache folder of the user of the folder home on this system, reading the environment variables through environment: %LOCALAPPDATA% (or AppData/Local) on Windows, Library/Caches on macOS, $XDG_CACHE_HOME (or .cache) on Linux.
Value details
Section titled “Value details”WINDOWS
Section titled “WINDOWS”WINDOWS
Windows.
MACOS
macOS.
LINUX
Linux, and every system that is neither Windows nor macOS.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
