public int indexOf ( Field field ) { requireNonNull ( field , "field cannot be null" ) ; Integer index = fieldIndexes . get ( field ) ; checkArgument ( index != null , "Field %s not found" , field ) ; return index ; }
Gets the index of the specified field .