wt.part
Class DocumentNameComparator

java.lang.Object
  extended bywt.part.DocumentNameComparator
All Implemented Interfaces:
Comparator

public class DocumentNameComparator
extends Object
implements Comparator

This Comparator can be used to compare the Name attribute of WTDocuments and/or WTDocumentMasters, using a Locale-specific instance of a Collator.

Supported API: true

Extendable: false


Field Summary
private  Locale locale
           
 
Constructor Summary
DocumentNameComparator(Locale locale)
           
 
Method Summary
 int compare(Object o1, Object o2)
           
private  String getString(Object obj)
           
 
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
 

Field Detail

locale

private Locale locale
Constructor Detail

DocumentNameComparator

public DocumentNameComparator(Locale locale)
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator

getString

private String getString(Object obj)