Collections.Comparator.compare()

Signature

int compare ( Object comparator, Object o1, Object o2 )

Domain

ACTION

Description

Compares its two arguments for order.

Parameters

NameTypeDescription
comparatorObjectThe Comparator object.
o1ObjectThe first object to be compared.
o2ObjectThe second object to be compared.

Returns

TypeDescription
intA negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Cautions

none