Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.views
Class ISeriesEditorListingViewer.FileDateComparator

java.lang.Object
  extended by com.ibm.etools.iseries.edit.views.ISeriesEditorListingViewer.FileDateComparator
All Implemented Interfaces:
Comparator
Enclosing class:
ISeriesEditorListingViewer

public class ISeriesEditorListingViewer.FileDateComparator
extends Object
implements Comparator

Inner class that compares dates for sorting


Constructor Summary
ISeriesEditorListingViewer.FileDateComparator()
           
 
Method Summary
 int compare(Object obj1, Object obj2)
          Compares its two arguments for order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ISeriesEditorListingViewer.FileDateComparator

public ISeriesEditorListingViewer.FileDateComparator()
Method Detail

compare

public int compare(Object obj1,
                   Object obj2)
Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second. Note that this implementation sorts the files in reverse order so that the most recent files come first.

Specified by:
compare in interface Comparator

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.