question: private static Map < String , SnmpOid > buildPoolIndexMap ( SnmpCachedData cached ) { if ( cached == null ) return Collections . emptyMap ( ) ; final SnmpOid [ ] indexes = cached . indexes ; final Object [ ] datas = cached . datas ; final int len = indexes . length ; final Map < String , SnmpOid > m = new HashMap < > ( len ) ; for ( int i = 0 ; i < len ; i ++ ) { final SnmpOid index = indexes [ i ] ; if ( index == null ) continue ; final MemoryPoolMXBean mpm = ( MemoryPoolMXBean ) datas [ i ] ; if ( mpm == null ) continue ; final String name = mpm . getName ( ) ; if ( name == null ) continue ; m . put ( name , index ) ; } return m ; }
target:  Builds a map pool-name => pool-index from the SnmpTableHandler of the JvmMemPoolTable. Optimized algorithm.