private AssignmentField selectField ( AssignmentField [ ] fields , int index ) { if ( index < 1 || index > fields . length ) { throw new IllegalArgumentException ( index + " is not a valid field index" ) ; } return ( fields [ index - 1 ] ) ; }
Maps a field index to an AssignmentField instance .