public static void addIndexData ( ValidationData data , ValidationDataIndex index ) { String key = index . getKey ( data ) ; List < ValidationData > datas = index . get ( key ) ; if ( datas == null ) { datas = new ArrayList <> ( ) ; } datas . add ( data ) ; index . getMap ( ) . put ( key , datas ) ; }
Add index data .