private Map < String , FileDescriptor > getCache ( Iterable < FileDescriptor > fileDescriptors ) { Map < String , FileDescriptor > cache = new HashMap <> ( ) ; for ( FileDescriptor fileDescriptor : fileDescriptors ) { cache . put ( fileDescriptor . getFileName ( ) , fileDescriptor ) ; } return cache ; }
Creates cache map from the given collection of file descriptors .