Treeviz 0.37 2010-10-17

ch.randelshofer.tree.demo
Class FileNameComparator

java.lang.Object
  extended by ch.randelshofer.tree.demo.FileNameComparator
All Implemented Interfaces:
java.util.Comparator

public class FileNameComparator
extends java.lang.Object
implements java.util.Comparator

FileNameComparator.

Version:
1.0 September 16, 2007 Created.
Author:
Werner Randelshofer

Constructor Summary
FileNameComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares two nodes using their collation keys.
static FileNameComparator getInstance()
           
 
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

FileNameComparator

public FileNameComparator()
Method Detail

getInstance

public static FileNameComparator getInstance()

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compares two nodes using their collation keys.

Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - An instance of AliasFileSystemTreeModel.Node.
o2 - An instance of AliasFileSystemTreeModel.Node.

Copyright 2007-2008 (c) Werner Randelshofer.
All rights reserved.