public Type getField(int number, int rep) throws HL7Exception { Type[] types = getField(number); if (rep >= types.length) { throw new IllegalArgumentException(String.format("Cannot add repetition with index %d to unmodifiable field %d " + " - there are currently only %d fields.", rep, number, types.length)); } return types[rep]; }
public Type getField(int number, int rep) throws HL7Exception { Type[] types = getField(number); if (rep >= types.length) { throw new IllegalArgumentException(String.format("Cannot add repetition with index %d to unmodifiable field %d " + " - there are currently only %d fields.", rep, number, types.length)); } return types[rep]; }