Package dev.turboism.sdk.cubism.core
Enum Class CoreRuntimeInfo.Unavailable
java.lang.Object
java.lang.Enum<CoreRuntimeInfo.Unavailable>
dev.turboism.sdk.cubism.core.CoreRuntimeInfo.Unavailable
- All Implemented Interfaces:
CoreRuntimeInfo,Serializable,Comparable<CoreRuntimeInfo.Unavailable>,Constable
- Enclosing interface:
- CoreRuntimeInfo
public static enum CoreRuntimeInfo.Unavailable
extends Enum<CoreRuntimeInfo.Unavailable>
implements CoreRuntimeInfo
Sentinel returned by
unavailable(): every member throws a stable
UnsupportedOperationException; probe with isAvailable() first.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface dev.turboism.sdk.cubism.core.CoreRuntimeInfo
CoreRuntimeInfo.Unavailable -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the feature set reported by the admitted Core runtime.booleanReports whether a live runtime backend backs this instance.Returns the permission-checked MOC byte inspection service.Returns the owned-Moc loader (plugin-owned Core models built from MOC bytes).static CoreRuntimeInfo.UnavailableReturns the enum constant of this class with the specified name.static CoreRuntimeInfo.Unavailable[]values()Returns an array containing the constants of this enum class, in the order they are declared.version()Returns the admitted Cubism Core runtime version.
-
Enum Constant Details
-
INSTANCE
-
-
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
-
isAvailable
public boolean isAvailable()Description copied from interface:CoreRuntimeInfoReports whether a live runtime backend backs this instance.- Specified by:
isAvailablein interfaceCoreRuntimeInfo- Returns:
falsewhen the backend backing this instance is unavailable, including theCoreRuntimeInfo.unavailable()sentinel
-
version
Description copied from interface:CoreRuntimeInfoReturns the admitted Cubism Core runtime version.- Specified by:
versionin interfaceCoreRuntimeInfo
-
capabilities
Description copied from interface:CoreRuntimeInfoReturns the feature set reported by the admitted Core runtime.- Specified by:
capabilitiesin interfaceCoreRuntimeInfo
-
mocInspector
Description copied from interface:CoreRuntimeInfoReturns the permission-checked MOC byte inspection service.- Specified by:
mocInspectorin interfaceCoreRuntimeInfo
-
mocLoader
Description copied from interface:CoreRuntimeInfoReturns the owned-Moc loader (plugin-owned Core models built from MOC bytes).Fail-closed: without an admitted host Core runtime this default is unavailable. The runtime backend overrides it with the verified loader.
- Specified by:
mocLoaderin interfaceCoreRuntimeInfo
-