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