/** * Creates a new decorator for a bag which is bounded. * * @param \blaze\collections\BidiMap $bidiMap The decorated bidimap * @param int $maxCount The maximal size */ public function __construct(\blaze\collections\BidiMap $bidiMap, $maxCount) { parent::__construct($bidiMap); $this->maxCount = $maxCount; }
/** * Implementations must call this constructor for initialization. * * @param \blaze\collections\bidimap\SortedBidiMap $bidiMap The decorated bidimap. */ public function __construct(\blaze\collections\bidimap\SortedBidiMap $bidiMap) { parent::__construct($bidiMap); $this->sortedBidiMap = $bidiMap; }
/** * Creates a decorator over the given bidimap with the given type checkers to check the type of keys and values. * * @param \blaze\collections\BidiMap $bidiMap The decorated bidimap * @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\BidiMap $bidiMap, \blaze\collections\TypeChecker $typeCheckerKey, \blaze\collections\TypeChecker $typeCheckerValue) { parent::__construct($bidiMap); $this->typeCheckerKey = $typeCheckerKey; $this->typeCheckerValue = $typeCheckerValue; }