public static Map < String , ImageArchiveManifestEntry > mapEntriesById ( Iterable < ImageArchiveManifestEntry > entries ) { Map < String , ImageArchiveManifestEntry > mapped = new LinkedHashMap <> ( ) ; for ( ImageArchiveManifestEntry entry : entries ) { mapped . put ( entry . getId ( ) , entry ) ; } return mapped ; }
Build a map of entries by id from an iterable of entries .