public function indexOfValue($value)
    {
        $name = $this->getNameByValue($value);
        if(!is_null($name))
        {
            return $this->indexOfKey($name);
        }
        return -1;
    }