KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > pmd > util > Applier


1 /**
2  * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3  */

4 package net.sourceforge.pmd.util;
5
6 import java.util.Iterator JavaDoc;
7
8 public class Applier {
9
10     public static void apply(UnaryFunction f, Iterator JavaDoc i) {
11         while (i.hasNext()) {
12             f.applyTo(i.next());
13         }
14     }
15 }
16
Popular Tags