zombie.util
Interface IntComparator


public interface IntComparator

This interface represents comparators of int values. The comparator interface is used for defining new orderings for int values.

Since:
1.0
Version:
1.0 2002/29/12
Author:
Søren Bak
See Also:
Comparator

Method Summary
 int compare(int v1, int v2)
          Compares two int values for order.
 

Method Detail

compare

int compare(int v1,
            int v2)
Compares two int values for order.

Parameters:
v1 - the first int value in the comparison.
v2 - the second int value in the comparison.
Returns:
a negative int value if v1 < v2, 0 if v1 is equal to v2, or a positive integer if v1 > v2.