/**
  * 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;
 }
示例#2
0
 /**
  * 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;
 }
示例#3
0
 /**
  * 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;
 }