Secure iNet Factory

com.jscape.filetransfer
Class FileTransferRemoteSort.FileNameComparator

java.lang.Object
  extended by com.jscape.filetransfer.FileTransferRemoteSort.FileNameComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
FileTransferRemoteSort

public static class FileTransferRemoteSort.FileNameComparator
extends java.lang.Object

Sorts files by name.


Constructor Summary
FileTransferRemoteSort.FileNameComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares the file name of both FileTransferRemoteFile arguments.
 boolean equals(java.lang.Object obj)
          equals.
 boolean getAscendent()
          Gets the ascendet value.
 void setAscendent(boolean ascendent)
          Sets the ascendet indicator.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTransferRemoteSort.FileNameComparator

public FileTransferRemoteSort.FileNameComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compares the file name of both FileTransferRemoteFile arguments. Compares to string using the compareToIgnoreCase function

Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - The first file will be compared
o2 - The second file will be compared
Returns:
a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

setAscendent

public void setAscendent(boolean ascendent)
Sets the ascendet indicator.

Parameters:
ascendent - The new indicator value

getAscendent

public boolean getAscendent()
Gets the ascendet value.

Returns:
The ascendent indicator

equals

public boolean equals(java.lang.Object obj)
equals.

Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object
Parameters:
obj - Object
Returns:
boolean

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved