protected BigDecimal calculateScoreBasedOnEventsCount ( final Authentication authentication , final Collection < ? extends CasEvent > events , final long count ) { if ( count == events . size ( ) ) { LOGGER . debug ( "Principal [{}] is assigned to the lowest risk score with attempted count of [{}]" , authentication . getPrincipal ( ) , count ) ; return LOWEST_RISK_SCORE ; } return getFinalAveragedScore ( count , events . size ( ) ) ; }
Calculate score based on events count big decimal .