You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
879 B
51 lines
879 B
/*
|
|
* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
|
|
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*/
|
|
|
|
package java.io;
|
|
|
|
|
|
/**
|
|
* A filter for abstract pathnames.
|
|
*
|
|
* <p> Instances of this interface may be passed to the <code>{@link
|
|
* File#listFiles(java.io.FileFilter) listFiles(FileFilter)}</code> method
|
|
* of the <code>{@link java.io.File}</code> class.
|
|
*
|
|
* @since 1.2
|
|
*/
|
|
@FunctionalInterface
|
|
public interface FileFilter {
|
|
|
|
/**
|
|
* Tests whether or not the specified abstract pathname should be
|
|
* included in a pathname list.
|
|
*
|
|
* @param pathname The abstract pathname to be tested
|
|
* @return <code>true</code> if and only if <code>pathname</code>
|
|
* should be included
|
|
*/
|
|
boolean accept(File pathname);
|
|
}
|