static class DirectoryWalker.DirStackEntry
extends java.lang.Object
DirectoryWalker.dirStack
Modifier and Type | Field and Description |
---|---|
private int |
count
Count of files in the directory.
|
private java.io.File |
dir
Current Directory.
|
private int |
index
Index (or offset) within the directory count.
|
private double |
percentageOffset
Offset for percentage calculations.
|
private double |
percentageSize
Size of percentage space to work with.
|
Constructor and Description |
---|
DirStackEntry(java.io.File d,
int length)
Create a DirStackEntry.
|
Modifier and Type | Method and Description |
---|---|
double |
getNextPercentageOffset()
Calculate the next percentage offset.
|
double |
getNextPercentageSize()
Calculate the next percentage size.
|
int |
getPercentage()
The percentage of the DirStackEntry right now.
|
java.lang.String |
toString() |
private final int count
private final java.io.File dir
private int index
private double percentageOffset
private double percentageSize
public DirStackEntry(java.io.File d, int length)
d
- the directory to tracklength
- the length of entries in the directory.public double getNextPercentageOffset()
public double getNextPercentageSize()
public int getPercentage()
public java.lang.String toString()
toString
in class java.lang.Object