Applier.java :  » UML » jrefactory » org » acm » seguin » pmd » util » Java Open Source

Java Open Source » UML » jrefactory 
jrefactory » org » acm » seguin » pmd » util » Applier.java
package org.acm.seguin.pmd.util;

import java.util.Iterator;

public class Applier {

    public static void apply(UnaryFunction f, Iterator i) {
        while (i.hasNext()) {
            f.applyTo(i.next());
        }
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.