Сам не ожидал, что будет работать. Хотя условие не соблюдено, его приняли.
public int hashCode()
    {
        char[] n = new char[model.length()];
        n = model.toCharArray();
        int hash=0;
        for (int i = 0; i < model.length(); i++)
        {
            hash = hash + (int)n[i];
        }
        return hash;
    }