/** * @return boolean Wether the action was successfull or not */ public function retainAll(\blaze\collections\Collection $obj) { $ret = false; foreach ($this as $val) { if (!$obj->contains($val)) { $this->remove($val); $ret = true; } } return $ret; }
public function contains(\blaze\lang\Reflectable $obj) { return $this->collection->contains($obj); }