Top Description Inners Methods
org.glassfish.pfl.basic.func

public Interface NullaryFunction<T>

Known Direct Implementers
org.glassfish.pfl.basic.func.NullaryFunctionBase
Annotations
@Deprecated

Deprecated

replaced by java.util.function.Supplier

A function that takes no arguments and returns a result.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Method Summary

Modifier and TypeMethod and Description
public T

Method Detail

evaluateback to summary
public T evaluate()
org.glassfish.pfl.basic.func back to summary

public Class NullaryFunction.Factory

extends Object
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <T> NullaryFunction<T>
makeConstant(final T value)
References Deprecated NullaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.

public static <T> NullaryFunction<T>
makeFuture(final NullaryFunction<T> closure)
References Deprecated NullaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Factoryback to summary
private Factory()

Method Detail

makeConstantback to summary
public static <T> NullaryFunction<T> makeConstant(final T value)

References Deprecated

NullaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

makeFutureback to summary
public static <T> NullaryFunction<T> makeFuture(final NullaryFunction<T> closure)

References Deprecated

NullaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.