Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function floor($item)
 {
     return $this->tree->floor($item);
 }
Esempio n. 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());
 }
Esempio n. 3
0
 /**
  * {@inheritdoc}
  */
 public function floor($key)
 {
     return $this->tree->floor($key);
 }