public class RandomPathFilter extends Object implements PathFilter
Modifier and Type | Field and Description |
---|---|
protected String[] |
extensions |
protected long |
maxPaths |
protected Random |
random |
Constructor and Description |
---|
RandomPathFilter(Random random,
String... extensions)
Calls
this(random, extensions, 0) . |
RandomPathFilter(Random random,
String[] extensions,
long 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 long maxPaths
public RandomPathFilter(Random random, String... extensions)
this(random, extensions, 0)
.protected boolean accept(String name)
public URI[] filter(URI[] paths)
filter
in interface PathFilter
Copyright © 2020. All rights reserved.