Package fj

Class Unit


  • public final class Unit
    extends java.lang.Object
    The unit type which has only one value.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static Unit u  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Unit()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      static Unit unit()
      The only value of the unit type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • u

        private static final Unit u
    • Constructor Detail

      • Unit

        private Unit()
    • Method Detail

      • unit

        public static Unit unit()
        The only value of the unit type.
        Returns:
        The only value of the unit type.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object