Package com.hascode.tutorial

Source Code of com.hascode.tutorial.CommonsFunctorExample

package com.hascode.tutorial;

import org.apache.commons.functor.Predicate;
import org.apache.commons.functor.Procedure;
import org.apache.commons.functor.core.algorithm.WhileDo;

public class CommonsFunctorExample {
  public static void main(final String[] args) {
    Predicate predicate = new Predicate() {
      public boolean test() {
        return true;
      }
    };
    Procedure procedure = new Procedure() {
      public void run() {
        System.out.println("test");
      }
    };
    new WhileDo(predicate, procedure).run();
  }
}
TOP

Related Classes of com.hascode.tutorial.CommonsFunctorExample

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.