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