Package com.jnape.palatable.lambda.adt
Class Unit
- java.lang.Object
-
- com.jnape.palatable.lambda.adt.Unit
-
public final class Unit extends java.lang.ObjectThe 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 privateUnit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()
-
-
-
Field Detail
-
UNIT
public static final Unit UNIT
The singleton instance.
-
-