private RollupType getRollupType( Map<Long, Object> tsRollupMap ) {
    """
	Given a map of timestamps -> Rollups/SimpleNumbers, return RollupType, or null, if not a Rollup.
	
	@param tsRollupMap
	@return
    """

        if( tsRollupMap.isEmpty() )
            return null;
        else {

            Object value = tsRollupMap.values().iterator().next();
            return value instanceof Rollup ? ( (Rollup) value ).getRollupType() : null;
        }
    }
private RollupType getRollupType( Map<Long, Object> tsRollupMap ) {

        if( tsRollupMap.isEmpty() )
            return null;
        else {

            Object value = tsRollupMap.values().iterator().next();
            return value instanceof Rollup ? ( (Rollup) value ).getRollupType() : null;
        }
    }
private RollupType getRollupType ( Map < Long , Object > tsRollupMap ) { if ( tsRollupMap . isEmpty ( ) ) return null ; else { Object value = tsRollupMap . values ( ) . iterator ( ) . next ( ) ; return value instanceof Rollup ? ( ( Rollup ) value ) . getRollupType ( ) : null ; } }
Given a map of timestamps -> Rollups/SimpleNumbers, return RollupType, or null, if not a Rollup.

@param tsRollupMap
@return
Given a map of timestamps - > Rollups / SimpleNumbers return RollupType or null if not a Rollup .