public class RandomPathFilter extends Object implements PathFilter
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
extensions |
protected int |
maxPaths |
protected Random |
random |
| Constructor and Description |
|---|
RandomPathFilter(Random random,
String... extensions)
Calls
this(random, extensions, 0). |
RandomPathFilter(Random random,
String[] extensions,
int maxPaths)
Constructs an instance of the PathFilter.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(String name) |
URI[] |
filter(URI[] paths) |
protected Random random
protected String[] extensions
protected int maxPaths
public RandomPathFilter(Random random, String... extensions)
this(random, extensions, 0).protected boolean accept(String name)
public URI[] filter(URI[] paths)
filter in interface PathFilterCopyright © 2017. All rights reserved.