org.codehaus.plexus.util
class DirectoryWalker.DirStackEntry extends Object
Field Summary | |
---|---|
int | count
Count of files in the directory. |
File | dir
Current Directory. |
int | index
Index (or offset) within the directory count. |
double | percentageOffset
Offset for percentage calculations. |
double | percentageSize
Size of percentage space to work with. |
Constructor Summary | |
---|---|
DirStackEntry(File d, int length)
Create a DirStackEntry.
|
Method Summary | |
---|---|
double | getNextPercentageOffset()
Calculate the next percentage offset.
|
double | getNextPercentageSize()
Calculate the next percentage size.
|
int | getPercentage()
The percentage of the DirStackEntry right now.
|
String | toString() |
Parameters: d the directory to track length the length of entries in the directory.
Returns: the value for the next percentage offset.
Returns: the value for the next percentage size.
Returns: the percentage right now.