| bak.pcj.ShortComparator
ShortComparator | public interface ShortComparator (Code) | | This interface represents comparators of short values. The
comparator interface is used for defining new orderings for
short values.
See Also: java.util.Comparator author: Søren Bak version: 1.0 2002/29/12 since: 1.0 |
Method Summary | |
int | compare(short v1, short v2) Compares two short values for order.
Parameters: v1 - the first short value in the comparison. Parameters: v2 - the second short value in the comparison. |
compare | int compare(short v1, short v2)(Code) | | Compares two short values for order.
Parameters: v1 - the first short value in the comparison. Parameters: v2 - the second short value in the comparison. a negative int value if v1 < v2,0 if v1 is equal to v2,or a positive integer if v1 > v2. |
|
|