Package com.contentful.java.cma
Class Platform
- java.lang.Object
-
- com.contentful.java.cma.Platform
-
public abstract class Platform extends java.lang.ObjectAn platform abstraction layer singleton providing information about the underlying system.
-
-
Constructor Summary
Constructors Constructor Description Platform()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.util.concurrent.ExecutorcallbackExecutor()Return an executor for this platform.static Platformget()abstract java.lang.Stringname()How do you call this platform?abstract java.lang.Stringversion()Which version of the platform is executing this app?
-
-
-
Method Detail
-
get
public static Platform get()
- Returns:
- the current platform.
-
callbackExecutor
public abstract java.util.concurrent.Executor callbackExecutor()
Return an executor for this platform.- Returns:
- an executor for this platform.
-
name
public abstract java.lang.String name()
How do you call this platform?Valid values are "Windows", "Linux", "Mac OS" and "Android".
- Returns:
- a string identifying this platform by name.
-
version
public abstract java.lang.String version()
Which version of the platform is executing this app?- Returns:
- "1.4", "4.4", "10.1" …
-
-