float getChangePercent ( int latestCardinality , int previousCardinality ) { int diff = Math . abs ( latestCardinality - previousCardinality ) ; return ( 100.0f * diff ) / previousCardinality ; }
protected for tests