public static String getStats ( ) { long total = sCacheHit + sCacheMiss + sCacheUn ; double hit = ( ( double ) sCacheHit / ( double ) total ) * 100.0 ; double miss = ( ( double ) sCacheMiss / ( double ) total ) * 100.0 ; double un = ( ( double ) sCacheUn / ( double ) total ) * 100.0 ; // Default locale java . text . NumberFormat nf = java . text . NumberFormat . getInstance ( ) ; return "Total: " + total + " reads. " + "Cache hits: " + sCacheHit + " (" + nf . format ( hit ) + "%), " + "Cache misses: " + sCacheMiss + " (" + nf . format ( miss ) + "%), " + "Unattempted: " + sCacheUn + " (" + nf . format ( un ) + "%) " ; }
Gets a string containing the stats for this ObjectReader .