Package net.officefloor.frame.test
Class Closure<T>
- java.lang.Object
-
- net.officefloor.frame.test.Closure<T>
-
- All Implemented Interfaces:
java.util.function.Consumer<T>
public class Closure<T> extends java.lang.Object implements java.util.function.Consumer<T>
Captures a free variable for closure state of aFunction
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(T value)
-
-
-
Constructor Detail
-
Closure
public Closure()
Initialise withnull
.
-
Closure
public Closure(T initialValue)
Initialise with initial value.- Parameters:
initialValue
- Initial value.
-
-