/** * Implementations must call this constructor for initialization. * * @param \blaze\collections\map\SortedMap $map The decorated map. */ public function __construct(\blaze\collections\map\SortedMap $map) { parent::__construct($map); $this->sortedMap = $map; }
/** * Creates a decorator over the given map with the given type checkers to check the type of keys and values. * * @param \blaze\collections\Map $map The decorated map * @param \blaze\collections\TypeChecker $typeCheckerKey The type checker for the key * @param \blaze\collections\TypeChecker $typeCheckerValue The type checker for the value */ public function __construct(\blaze\collections\Map $map, \blaze\collections\TypeChecker $typeCheckerKey, \blaze\collections\TypeChecker $typeCheckerValue) { parent::__construct($map); $this->typeCheckerKey = $typeCheckerKey; $this->typeCheckerValue = $typeCheckerValue; }
/** * Creates a new decorator for a map which is bounded. * * @param \blaze\collections\Map $map The decorated map * @param int $maxCount The maximal size */ public function __construct(\blaze\collections\Map $map, $maxCount) { parent::__construct($map); $this->maxCount = $maxCount; }