Class Unit

  • All Implemented Interfaces:
    Comparable<Unit>, Iterable, Collection, List

    public class Unit
    extends AbstractList
    implements Comparable<Unit>
    A placeholder value for the "unit" type.

    We sometimes use it as a dummy value when we need to add a variable (and its type) to the compilation environment but we don't have a value (because it's not a runtime environment).