コード例 #1
0
ファイル: SortedSet.php プロジェクト: novuso/system
 /**
  * {@inheritdoc}
  */
 public function floor($item)
 {
     return $this->tree->floor($item);
 }
コード例 #2
0
 /**
  * @expectedException \Novuso\System\Exception\UnderflowException
  */
 public function test_that_floor_throws_exception_when_empty()
 {
     $tree = new RedBlackSearchTree(new ComparableComparator());
     $tree->floor(WeekDay::WEDNESDAY());
 }
コード例 #3
0
ファイル: SortedTable.php プロジェクト: novuso/system
 /**
  * {@inheritdoc}
  */
 public function floor($key)
 {
     return $this->tree->floor($key);
 }