Packageorg.servebox.commons.comparator
Classpublic class StringComparator
ImplementsIComparator

StringComparator performs a comparison between two strings.



Public Methods
 MethodDefined by
  
compare(o1:*, o2:*):int
Compares two arguments .
StringComparator
Method detail
compare()method
public function compare(o1:*, o2:*):int

Compares two arguments . Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Parameters
o1:*
 
o2:*

Returns
int