int counter= 0; fKey= createKey(counter); while (true) { int i; for (i= 0; i < substitutions.length; i++) { NLSSubstitution substitution= substitutions[i]; if ((substitution == this) || (substitution.fState != EXTERNALIZED)) continue; if (substitution.getKey().equals(getKey())) { fKey= createKey(counter++); break; }
int min= Integer.MAX_VALUE; int max= Integer.MIN_VALUE;  for (int i= 0; i < substitutions.length; i++) { NLSSubstitution substitution= substitutions[i]; if ((substitution == this) || (substitution.fState != EXTERNALIZED)) continue; try { int value= Integer.parseInt(substitution.getKeyWithoutPrefix()); min= Math.min(min, value); max= Math.max(max, value); } catch (NumberFormatException ex) {
	public void generateKey(NLSSubstitution[] substitutions) {		if (fState != EXTERNALIZED || ((fState == EXTERNALIZED) && hasStateChanged())) {			int counter= 0;			fKey= createKey(counter);			while (true) {				int i;				for (i= 0; i < substitutions.length; i++) {					NLSSubstitution substitution= substitutions[i];					if ((substitution == this) || (substitution.fState != EXTERNALIZED))						continue;					if (substitution.getKey().equals(getKey())) {						fKey= createKey(counter++);						break;					}				}				if (i == substitutions.length)					return;			}		}	}