OptionalBool


public final class OptionalBool


Represents a boolean value that can also be undefined.

Summary

Constants

static final int
False = 0

The boolean value {@code false}.

static final int
True = 1

The boolean value {@code true}.

static final int

No boolean value is specified.

Public methods

static final @NonNull String
toString(int value)

Constants

False

public static final int False = 0

The boolean value {@code false}.

True

public static final int True = 1

The boolean value {@code true}.

Undefined

public static final int Undefined = 2

No boolean value is specified.

Public methods

toString

Added in 1.0.0-alpha05
public static final @NonNull String toString(int value)