compare(T, T) method

A comparator that works for all Named objects (not just BasicNamed).

Syntax

int compare ( T t1 , T t2 )

Parameters

Returns

an integer representing the result of the comparison (0 indicating identical named objects).