Package wt.part
Class PartStructureNameComparator
java.lang.Object
wt.part.PartStructureNameComparator
- All Implemented Interfaces:
Comparator
This Comparator can be used to compare the Name attribute of
Supported API: true
Extendable: false
WTParts and/or WTPartMasters,
using a Locale-specific instance of a Collator.
Supported API: true
Extendable: false
-
Constructor Summary
ConstructorsConstructorDescriptionPartStructureNameComparator(Locale locale) This constructor needs a Locale to construct a locale-specific Collator to use in comparing the Number attributes. -
Method Summary
Modifier and TypeMethodDescriptionintCompares the Name attribute of item 1 of each array, which should be either contain aWTPartor aWTPartMaster, using a Locale-specific instance of a Collator, using thegetString(java.lang.Object)method to extract the Number from either type of object.protected StringExtracts the Name attribute ofWTParts and/orWTPartMasters.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
PartStructureNameComparator
This constructor needs a Locale to construct a locale-specific Collator to use in comparing the Number attributes.
Supported API: true
Extendable: false
-
-
Method Details
-
compare
Compares the Name attribute of item 1 of each array, which should be either contain aWTPartor aWTPartMaster, using a Locale-specific instance of a Collator, using thegetString(java.lang.Object)method to extract the Number from either type of object.
Supported API: true
Extendable: false- Specified by:
comparein interfaceComparator
-
getString
-