@ Nonnull public ExcelReadOptions < USE_TYPE > addColumn ( @ Nonnegative final int nIndex , @ Nonnull @ Nonempty final String sColumnID , @ Nonnull final USE_TYPE eUseType , @ Nonnull @ Nonempty final String sDataType , final boolean bKeyColumn ) { ValueEnforcer . isGE0 ( nIndex , "Index" ) ; final Integer aIndex = Integer . valueOf ( nIndex ) ; if ( m_aColumns . containsKey ( aIndex ) ) throw new IllegalArgumentException ( "The column at index " + nIndex + " is already mapped!" ) ; m_aColumns . put ( aIndex , new ExcelReadColumn <> ( nIndex , sColumnID , eUseType , sDataType , bKeyColumn ) ) ; return this ; }
Add a single column definition .