コード例 #1
0
ファイル: HashMap.php プロジェクト: trashtoy/peach2
 /**
  * 指定されたキーのインデックスを返します.
  * @param  string $key
  * @return int
  */
 private function getIndexOf($key)
 {
     $hash = $this->equator->hashCode($key);
     return $this->capacity - 1 & $hash;
 }