1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* <license>
* This file is part of the dis-Emi-A HaXe Library. Copyright © edA-qa mort-ora-y
* For full copyright and license information please refer to doc/license.txt.
* </license>
*/
/**
* An object that implements "compare" is comparable.
*/
typedef Comparable<T> =
{
/**
* Compare one object to another, be aware this may be called with
* a different type, so the types should be checked! If the type is not
* acceptable then an Exception should be thrown.
*
* @return [out] < 0 if this is less than other, 0 if equals, 1 if greater
*/
function compare( other : T ) : Int;
}
|