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

fj.F0 Maven / Gradle / Ivy

Go to download

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

The newest version!
package fj;

import fj.function.Effect0;
import fj.function.Try0;
import fj.function.TryEffect0;

import java.util.function.Supplier;

@FunctionalInterface
public interface F0 extends Supplier {

    A f();

    default A get() {
        return f();
    }

    default Effect0 toEffect0() {
        return () -> f();
    }

    default  TryEffect0 toTryEffect0() {
        return () -> f();
    }

    default  Try0 toTry0() {
        return () -> f();
    }

    default P1 toP1() {
        return P.lazy(() -> f());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy