private Multimap < String , byte [ ] > copyAuthInfo ( Multimap < String , byte [ ] > authInfos ) { Multimap < String , byte [ ] > result = ArrayListMultimap . create ( ) ; for ( Map . Entry < String , byte [ ] > entry : authInfos . entries ( ) ) { byte [ ] info = entry . getValue ( ) ; result . put ( entry . getKey ( ) , info == null ? null : Arrays . copyOf ( info , info . length ) ) ; } return result ; }
Creates a deep copy of the given authInfos multimap .