List of usage examples for org.apache.commons.functor NullaryProcedure interface-usage
From source file org.apache.commons.functor.example.lines.Count.java
/** * @version $Revision: 1508677 $ $Date: 2013-07-30 19:48:02 -0300 (Tue, 30 Jul 2013) $ */ public class Count implements NullaryProcedure { public void run() { count++;
From source file org.apache.commons.functor.example.kata.two.EiffelStyleLoop.java
/**
* Supports an Eiffel style loop construct.
* <pre>
* new EiffelStyleLoop()
* .from(new NullaryProcedure() { public void run() {} }) // init code
* .invariant(new NullaryPredicate() { public boolean test() {} }) // invariants