Package org.jboss.resteasy.spi.util
Class Functions
java.lang.Object
org.jboss.resteasy.spi.util.Functions
A simple utility for various functions.
- Author:
- James R. Perkins
-
Method Summary
-
Method Details
-
singleton
Creates a supplier which loads the value at most once with the provided generator.- Type Parameters:
T
- the type of result- Parameters:
generator
- the generator to load the value- Returns:
- a singleton supplier
-