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 Details

    • UNIT

      public static final Unit UNIT
      The singleton instance.
  • Constructor Details

    • Unit

      private Unit()
  • Method Details