Package org.smallmind.scribe.pen
Class FileCountCleanupRule
- java.lang.Object
-
- org.smallmind.scribe.pen.FileCountCleanupRule
-
- All Implemented Interfaces:
CleanupRule<FileCountCleanupRule>
public class FileCountCleanupRule extends Object implements CleanupRule<FileCountCleanupRule>
-
-
Constructor Summary
Constructors Constructor Description FileCountCleanupRule()FileCountCleanupRule(int maximum)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileCountCleanupRulecopy()voidfinish()intgetMaximum()voidsetMaximum(int maximum)booleanwillCleanup(Path possiblePath)
-
-
-
Method Detail
-
getMaximum
public int getMaximum()
-
setMaximum
public void setMaximum(int maximum)
-
copy
public FileCountCleanupRule copy()
- Specified by:
copyin interfaceCleanupRule<FileCountCleanupRule>
-
willCleanup
public boolean willCleanup(Path possiblePath)
- Specified by:
willCleanupin interfaceCleanupRule<FileCountCleanupRule>
-
finish
public void finish() throws IOException- Specified by:
finishin interfaceCleanupRule<FileCountCleanupRule>- Throws:
IOException
-
-