ComparatorX.from() Function
Enhances a Comparator instance with additional methods as defined in the ComparatorX interface.
Signature
function from<T>(comparator: Comparator<T>): ComparatorX<T>;
Remarks
The passed in comparator will mutated to include the additional methods at runtime.
Parameters
Parameter | Type | Description |
---|---|---|
comparator | Comparator<T> | the Comparator instance to enhance |
(Returns) | ComparatorX<T> | the enhanced instance |