Array with enumerated elements
In my opinion, what you need is an enum.

Use an enum and I believe what you are looking for will be provided for you.

public enum Utils {
    PROVIDER_FOO, PROVIDER_MOO, PROVIDER_BAR, PROVIDER_FUR,
    PROVIDER_BOO, PROVIDER_ANOTHER_FOO, PROVIDER_YET_ANOTHER;
}


String to int:

Utils.valueOf(str).ordinal();


int to String:

Utils.values()[intValue].name();


Or if you want to be a bit more advanced, I suggest reading this answer of mine