net.sf.staccatocommons.io.internal
Class FilePredicate

java.lang.Object
  extended by net.sf.staccatocommons.lang.predicate.AbstractPredicate<T>
      extended by net.sf.staccatocommons.lang.predicate.internal.TopLevelPredicate<File>
          extended by net.sf.staccatocommons.io.internal.FilePredicate
All Implemented Interfaces:
FileFilter, Serializable, net.sf.staccatocommons.defs.Applicable<File,Boolean>, net.sf.staccatocommons.defs.Evaluable<File>, net.sf.staccatocommons.defs.predicate.Predicate<File>
Direct Known Subclasses:
FilePredicate

public class FilePredicate
extends TopLevelPredicate<File>
implements FileFilter

A AbstractPredicate that wraps a FileFilter and acts as a FileFilter api to Evaluable api bridge

Author:
flbulgarelli
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.staccatocommons.lang.predicate.AbstractPredicate
AbstractPredicate.Soft<A>
 
Constructor Summary
FilePredicate(FileFilter fileFilter)
          Creates a new FilePredicate that wraps the given FileFilter
 
Method Summary
 boolean accept(File pathname)
           
 boolean eval(File argument)
           
 
Methods inherited from class net.sf.staccatocommons.lang.predicate.internal.TopLevelPredicate
toString
 
Methods inherited from class net.sf.staccatocommons.lang.predicate.AbstractPredicate
and, andNotNull, apply, not, of, or, orNull, withEffectOnFalse, withEffectOnTrue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilePredicate

public FilePredicate(@NonNull
                     FileFilter fileFilter)
Creates a new FilePredicate that wraps the given FileFilter

Parameters:
fileFilter - the file filter to wrap
Method Detail

eval

public boolean eval(@NonNull
                    File argument)
Specified by:
eval in interface net.sf.staccatocommons.defs.Evaluable<File>
Specified by:
eval in class AbstractPredicate<File>

accept

public boolean accept(@NonNull
                      File pathname)
Specified by:
accept in interface FileFilter


Copyright © 2010-2012 Staccatocommons. All Rights Reserved.