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 Stringm_Comparisonthe reassembled filename used for comparison.protected Stringm_Originalthe 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 intcompareTo(SftpDirectorySearchWithCustomSort.SortContainer o)Compares this filename with the other one.StringgetComparison()Returns the filename used for comparison.StringgetOriginal()Returns the original filename.StringtoString()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:
compareToin 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
-
-