question: private long memAllocationUnit2Multiplier ( String unit ) { Long res = multipliersByMemoryAllocationUnit . get ( unit . replace ( " " , "" ) ) ; if ( res == null ) { throw new IllegalArgumentException ( "Cannot map " + unit + " to a known unit" ) ; } else { return res ; } }
target:  Convert a an AllocationUnit string to bytes multiplier, for example KB would produce 1024.