/**
  * Creates a decorator over the given sorted collection with the given typeChecker to check the type of values.
  *
  * @param \blaze\collections\collection\SortedCollection $collection The decorated sorted collection
  * @param \blaze\collections\TypeChecker $typeChecker The type checker
  */
 public function __construct(\blaze\collections\collection\SortedCollection $collection, \blaze\collections\TypeChecker $typeChecker)
 {
     parent::__construct($collection);
     $this->typeChecker = $typeChecker;
 }
 /**
  * Creates a new decorator for a sorted collection which is bounded.
  *
  * @param \blaze\collections\Collection $collection The decorated collection
  * @param int $maxCount The maximal size
  */
 public function __construct(\blaze\collections\Collection $collection, $maxCount)
 {
     parent::__construct($collection);
     $this->maxCount = $maxCount;
 }