Package com.jnape.palatable.lambda.adt
Class Unit
- java.lang.Object
-
- com.jnape.palatable.lambda.adt.Unit
-
public final class Unit extends java.lang.Object
The empty return type. UnlikeVoid
, this type is actually inhabited by a singleton instance that can be used, rather than having to resort tonull
.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Unit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
-
-
Field Detail
-
UNIT
public static final Unit UNIT
The singleton instance.
-
-