public Map < String , String > configureAttributeNameFormats ( ) { if ( this . attributeNameFormats . isEmpty ( ) ) { return new HashMap <> ( 0 ) ; } val nameFormats = new HashMap < String , String > ( ) ; this . attributeNameFormats . forEach ( value -> Arrays . stream ( value . split ( "," ) ) . forEach ( format -> { val values = Splitter . on ( "->" ) . splitToList ( format ) ; if ( values . size ( ) == 2 ) { nameFormats . put ( values . get ( 0 ) , values . get ( 1 ) ) ; } } ) ) ; return nameFormats ; }
Configure attribute name formats and build a map .