Class FtpDirectorySearchWithCustomSort.SortContainer
- java.lang.Object
-
- adams.flow.source.filesystemsearch.FtpDirectorySearchWithCustomSort.SortContainer
-
- All Implemented Interfaces:
Serializable
,Comparable<FtpDirectorySearchWithCustomSort.SortContainer>
- Enclosing class:
- FtpDirectorySearchWithCustomSort
public static class FtpDirectorySearchWithCustomSort.SortContainer extends Object implements Serializable, Comparable<FtpDirectorySearchWithCustomSort.SortContainer>
Custom container for sorting the filenames.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
m_Comparison
the reassembled filename used for comparison.protected String
m_Original
the original filename.
-
Constructor Summary
Constructors Constructor Description SortContainer(String original, String comparison)
Initializes the container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(FtpDirectorySearchWithCustomSort.SortContainer o)
Compares this filename with the other one.String
getComparison()
Returns the filename used for comparison.String
getOriginal()
Returns the original filename.String
toString()
Returns a short representation of the container.
-
-
-
Method Detail
-
getOriginal
public String getOriginal()
Returns the original filename.- Returns:
- the filename
-
getComparison
public String getComparison()
Returns the filename used for comparison.- Returns:
- the filename
-
compareTo
public int compareTo(FtpDirectorySearchWithCustomSort.SortContainer o)
Compares this filename with the other one.- Specified by:
compareTo
in interfaceComparable<FtpDirectorySearchWithCustomSort.SortContainer>
- Parameters:
o
- the other container to compare with- Returns:
- less than zero is smaller, 0 if equal or greater than zero if larger
-
-