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.
  • Enum Constant Details

  • Method Details

    • values

      public static CoreRuntimeInfo.Unavailable[] 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

      public static CoreRuntimeInfo.Unavailable valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isAvailable

      public boolean isAvailable()
      Description copied from interface: CoreRuntimeInfo
      Reports whether a live runtime backend backs this instance.
      Specified by:
      isAvailable in interface CoreRuntimeInfo
      Returns:
      false when the backend backing this instance is unavailable, including the CoreRuntimeInfo.unavailable() sentinel
    • version

      public CoreVersion version()
      Description copied from interface: CoreRuntimeInfo
      Returns the admitted Cubism Core runtime version.
      Specified by:
      version in interface CoreRuntimeInfo
    • capabilities

      public CoreCapabilities capabilities()
      Description copied from interface: CoreRuntimeInfo
      Returns the feature set reported by the admitted Core runtime.
      Specified by:
      capabilities in interface CoreRuntimeInfo
    • mocInspector

      public MocInspector mocInspector()
      Description copied from interface: CoreRuntimeInfo
      Returns the permission-checked MOC byte inspection service.
      Specified by:
      mocInspector in interface CoreRuntimeInfo
    • mocLoader

      public MocLoader mocLoader()
      Description copied from interface: CoreRuntimeInfo
      Returns 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:
      mocLoader in interface CoreRuntimeInfo