Location: PHPKode > scripts > LLRB Tree > llrb-tree/iComparable.php
<?php

/*
 * 		iComparable is copyright � 2009. EarthWalk Software.
 * 		Licensed under the Academic Free License version 3.0
 *      Refer to the file named Copyright provided with the source.
 */
/**
 * 
 * iComparable.
 * 
 * iComparable interface to compare to objects of the same type.
 * @author Jay Wheeler.
 * @version 1.0
 * @copyright � 2009. EarthWalk Software.
 * @license refer to Copyright file provided with the source.
 * @package LLRBTree.
 * @subpackage iComparable.
 */
interface iComparable
{
	/**
	 * compare.
	 * 
	 * Compare compares 2 object of the same type.
	 * @param $object = object to be compared
	 * @return integer 0 = equal, 1 = >, -1 = <
	 */
	public function compare(self $object);
}
Return current item: LLRB Tree