All Downloads are FREE. Search and download functionalities are using the official Maven repository.

datastructs.IntegerVectorBuilder Maven / Gradle / Ivy

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));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy