Package com.nt.udc.util
Class NormalizeFile
java.lang.Object
com.nt.udc.util.NormalizeFile
- All Implemented Interfaces:
Comparable<NormalizeFile>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(NormalizeFile other) Comparator used to sort the NormalizeFile by defaultstatic StringGiven a month in String form, return it as a number String.getFile()return the file referencegetName()return the normalize file namenormalizeFileName(String fName) Given a file name , return the normalized name.
-
Constructor Details
-
NormalizeFile
-
-
Method Details
-
compareTo
Comparator used to sort the NormalizeFile by default- Specified by:
compareToin interfaceComparable<NormalizeFile>
-
getName
return the normalize file name -
getFile
return the file reference -
normalizeFileName
Given a file name , return the normalized name. * @param fName fileName, in String format -
get_month
Given a month in String form, return it as a number String.- Parameters:
month- Month, in String form- Returns:
- the given month, in String-numeric form
-