com.jnape.palatable.lambda.adt

## Class Unit

- java.lang.Object
- - com.jnape.palatable.lambda.adt.Unit

-     public final class Unit
      extends Object

  The empty return type. Unlike `Void`, this type is actually inhabited by a singleton instance that can be used, rather than having to resort to `null`.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static Unit` | `UNIT` The singleton instance.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### UNIT

          public static final Unit UNIT

      The singleton instance.

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`