@ Deprecated @ PublicEvolving public Integer getIntCounterResult ( String accumulatorName ) { Object result = this . accumulatorResults . get ( accumulatorName ) . getUnchecked ( ) ; if ( result == null ) { return null ; } if ( ! ( result instanceof Integer ) ) { throw new ClassCastException ( "Requested result of the accumulator '" + accumulatorName + "' should be Integer but has type " + result . getClass ( ) ) ; } return ( Integer ) result ; }
Gets the accumulator with the given name as an integer .