Package com.io7m.cedarbridge.runtime.api

# Interface CBBooleanType

All Superinterfaces:
  `CBSerializableType`, `Formattable`

All Known Implementing Classes:
  `CBFalse`, `CBTrue`

public sealed interface CBBooleanType extends Formattable, CBSerializableType permits CBFalse, CBTrue
The boolean type.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `asBoolean()`
  `static CBBooleanType`
  `fromBoolean(boolean b)`
  A boolean from the given boolean value.

  ### Methods inherited from interface java.util.Formattable

  `formatTo`

- ## Method Details

  - ### asBoolean

    boolean asBoolean()
    Returns:
      This value as a Java boolean

  - ### fromBoolean

    static CBBooleanType fromBoolean(boolean b)
    A boolean from the given boolean value.
    Parameters:
      `b` - The Java boolean
    Returns:
      The boolean