com.ptc.windchill.pdmlink.part.server.processors
Class DocumentNumberComparator
java.lang.Object
com.ptc.windchill.pdmlink.part.server.processors.DocumentNumberComparator
- All Implemented Interfaces:
- Comparator
public class DocumentNumberComparator
- extends Object
- implements Comparator
This Comparator can be used to compare the Number attribute of WTDocuments and/or WTDocumentMasters,
using a Locale-specific instance of a Collator.
Supported API: true
Extendable: false
|
Constructor Summary |
DocumentNumberComparator(Locale locale)
This constructor needs a Locale to construct a locale-specific Collator to use in comparing the Number attributes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentNumberComparator
public DocumentNumberComparator(Locale locale)
- This constructor needs a Locale to construct a locale-specific Collator to use in comparing the Number attributes.
Supported API: true
Extendable: false
compare
public int compare(Object o1,
Object o2)
- Compares the Number attribute of
WTDocuments and/or WTDocumentMasters,
using a Locale-specific instance of a Collator, using the getString method to extract the Number
from either type of object.
Supported API: true
Extendable: false
- Specified by:
compare in interface Comparator
getString
protected String getString(Object obj)
- Extracts the Number attribute of
WTDocuments and/or WTDocumentMasters.
Supported API: true
Extendable: false