question: public DataSet ( ArrayList < Entry > yVals , int type ) { this . mType = type ; this . mYVals = yVals ; if ( yVals == null || yVals . size ( ) <= 0 ) return ; calcMinMax ( ) ; calcYValueSum ( ) ; }
target:  Creates a new DataSet object with the given values it represents and a type for identification amongst other DataSet objects (the type can be chosen freely and must not be equal to another type in the ChartData object).