Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.greenstone.gatherer.util
Class ArrayTools.FileComparator  view ArrayTools.FileComparator download ArrayTools.FileComparator.java

java.lang.Object
  extended byorg.greenstone.gatherer.util.ArrayTools.FileComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
ArrayTools

private static class ArrayTools.FileComparator
extends java.lang.Object
implements java.util.Comparator

Comparator used to order files.


Field Summary
private  boolean directories_first
           
 
Constructor Summary
ArrayTools.FileComparator(boolean directories_first)
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compare two files in terms of ordering of their paths.
 boolean equals(java.lang.Object obj)
          Compare two files for equality, in terms of their file paths.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

directories_first

private boolean directories_first
Constructor Detail

ArrayTools.FileComparator

public ArrayTools.FileComparator(boolean directories_first)
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compare two files in terms of ordering of their paths.

Specified by:
compare in interface java.util.Comparator

equals

public boolean equals(java.lang.Object obj)
Compare two files for equality, in terms of their file paths.

Specified by:
equals in interface java.util.Comparator