@ Managed @ ManagedDescription ( "Reset all the statistics." ) public static void resetAll ( @ ManagedDescription ( "The name of the category of the statistics" ) @ ManagedName ( "categoryName" ) String category ) { StatisticsContext context = getContext ( category ) ; if ( context != null ) { context . reset ( ) ; } }
Allows to reset all the statistics corresponding to the given category .