/** * Implementations must call this constructor for initialization. * * @param \blaze\collections\set\SortedSet $set The decorated set. */ public function __construct(\blaze\collections\set\SortedSet $set) { parent::__construct($set); $this->sortedSet = $set; }
/** * Creates a decorator over the given set with the given typeChecker to check the type of values. * * @param \blaze\collections\Set $set The decorated 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 set which is bounded. * * @param \blaze\collections\Set $set The decorated set * @param int $maxCount The maximal size */ public function __construct(\blaze\collections\Set $set, $maxCount) { parent::__construct($set); $this->maxCount = $maxCount; }