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

com.github.highcharts4gwt.model.array.mock.MockArrayNumber Maven / Gradle / Ivy

There is a newer version: 0.0.7
Show newest version
package com.github.highcharts4gwt.model.array.mock;

import java.util.ArrayList;

import com.github.highcharts4gwt.model.array.api.ArrayNumber;

public class MockArrayNumber implements ArrayNumber
{
    private final ArrayList list = new ArrayList();

    @Override
    public double get(int arg0)
    {
        return list.get(arg0);
    }

    @Override
    public int length()
    {
        return list.size();
    }

    @Override
    public void setValue(int index, double element)
    {
        list.set(index, element);
    }

    @Override
    public void push(double value)
    {
        list.add(value);
    }

    @Override
    public void setLength(int newLength)
    {
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy