Class SftpDirectorySearchWithCustomSort.SortContainer
- java.lang.Object
-
- adams.flow.source.filesystemsearch.SftpDirectorySearchWithCustomSort.SortContainer
-
- All Implemented Interfaces:
Serializable
,Comparable<SftpDirectorySearchWithCustomSort.SortContainer>
- Enclosing class:
- SftpDirectorySearchWithCustomSort
public static class SftpDirectorySearchWithCustomSort.SortContainer extends Object implements Serializable, Comparable<SftpDirectorySearchWithCustomSort.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(SftpDirectorySearchWithCustomSort.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(SftpDirectorySearchWithCustomSort.SortContainer o)
Compares this filename with the other one.- Specified by:
compareTo
in interfaceComparable<SftpDirectorySearchWithCustomSort.SortContainer>
- Parameters:
o
- the other container to compare with- Returns:
- less than zero is smaller, 0 if equal or greater than zero if larger
-
-