public function __construct(TList $list, $startIndex, $count)
{
$this->_list = $list;
$this->_index = 0;
$this->_startIndex = $startIndex;
if ($startIndex + $count > $list->getCount()) {
$this->_count = $list->getCount() - $startIndex;
} else {
$this->_count = $count;
}
}