datastructs.IntegerVectorBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jstat Show documentation
Show all versions of jstat Show documentation
Java Library for Statistical Analysis.
The newest version!
package datastructs;
import datasets.VectorInt;
public class IntegerVectorBuilder implements IRowBuilder {
@Override
public VectorInt create(){
return new VectorInt();
}
/**
* Create a row of type RowType
*/
@Override
public VectorInt create(int n){
return new VectorInt(n, 0);
}
/**
* Create a row of type VectorInt from the given list
*/
@Override
public VectorInt create(T... vals){
return new VectorInt((Integer[])(vals));
}
}