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