Home | History | Annotate | Download | only in filefilter

Lines Matching refs:size

23  * Filters files based on size, can filter either smaller files or
27 * current directory whose size is greater than 1 MB:
43 /** The size threshold. */
44 private final long size;
49 * Constructs a new size file filter for files equal to or
50 * larger than a certain size.
52 * @param size the threshold size of the files
53 * @throws IllegalArgumentException if the size is negative
55 public SizeFileFilter(long size) {
56 this(size, true);
60 * Constructs a new size file filter for files based on a certain size
63 * @param size the threshold size of the files
66 * @throws IllegalArgumentException if the size is negative
68 public SizeFileFilter(long size, boolean acceptLarger) {
69 if (size < 0) {
70 throw new IllegalArgumentException("The size must be non-negative");
72 this.size = size;
78 * Checks to see if the size of the file is favorable.
80 * If size equals threshold and smaller files are required,
82 * If size equals threshold and larger files are required,
89 boolean smaller = file.length() < size;
100 return super.toString() + "(" + condition + size + ")";