com.armatiek.infofuze.stream.filesystem.filefilter
Class TrueFileFilter

java.lang.Object
  extended by com.armatiek.infofuze.stream.filesystem.filefilter.TrueFileFilter
All Implemented Interfaces:
IOFileFilter, java.io.Serializable

public class TrueFileFilter
extends java.lang.Object
implements IOFileFilter, java.io.Serializable

A file filter that always returns true. Based on code from Apache Commons IO version 2.01. The main difference is that this class filters objects that implement FileIf, not File. Original author Stephen Colebourne

See Also:
Serialized Form

Field Summary
static IOFileFilter INSTANCE
          Singleton instance of true filter.
static IOFileFilter TRUE
          Singleton instance of true filter.
 
Method Summary
 boolean accept(FileIf file)
          Returns true.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRUE

public static final IOFileFilter TRUE
Singleton instance of true filter.


INSTANCE

public static final IOFileFilter INSTANCE
Singleton instance of true filter. Please use the identical TrueFileFilter.TRUE constant. The new name is more JDK 1.5 friendly as it doesn't clash with other values when using static imports.

Method Detail

accept

public boolean accept(FileIf file)
Returns true.

Specified by:
accept in interface IOFileFilter
Parameters:
file - the file to check
Returns:
true