All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fj.Unit Maven / Gradle / Ivy

Go to download

Functional Java is an open source library that supports closures for the Java programming language

There is a newer version: 5.0
Show newest version
package fj;

/**
 * The unit type which has only one value.
 *
 * @version %build.number%
 */
public final class Unit {
  private static final Unit u = new Unit();

  private Unit() {

  }

  /**
   * The only value of the unit type.
   *
   * @return The only value of the unit type.
   */
  public static Unit unit() {
    return u;
  }

  @Override
  public String toString() {
    return "unit";
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy