Package org.codehaus.plexus.util
Class DirectoryWalker.DirStackEntry
- java.lang.Object
-
- org.codehaus.plexus.util.DirectoryWalker.DirStackEntry
-
- Enclosing class:
- DirectoryWalker
class DirectoryWalker.DirStackEntry extends java.lang.Object
DirStackEntry is an Item on theDirectoryWalker.dirStack
-
-
Field Summary
Fields Modifier and Type Field Description int
count
Count of files in the directory.java.io.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
Constructors Constructor Description DirStackEntry(java.io.File d, int length)
Create a DirStackEntry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
count
public int count
Count of files in the directory.
-
dir
public java.io.File dir
Current Directory.
-
index
public int index
Index (or offset) within the directory count.
-
percentageOffset
public double percentageOffset
Offset for percentage calculations. Based on parent DirStackEntry.
-
percentageSize
public double percentageSize
Size of percentage space to work with.
-
-
Method Detail
-
getNextPercentageOffset
public double getNextPercentageOffset()
Calculate the next percentage offset. Used by the next DirStackEntry.- Returns:
- the value for the next percentage offset.
-
getNextPercentageSize
public double getNextPercentageSize()
Calculate the next percentage size. Used by the next DirStackEntry.- Returns:
- the value for the next percentage size.
-
getPercentage
public int getPercentage()
The percentage of the DirStackEntry right now. Based on count, index, percentageOffset, and percentageSize.- Returns:
- the percentage right now.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-