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

com.github.highcharts4gwt.model.array.jso.JsoArray Maven / Gradle / Ivy

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

import com.github.highcharts4gwt.model.array.api.Array;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;

public class JsoArray extends JsArray implements Array
{

    protected JsoArray()
    {
    }

    @SuppressWarnings("unchecked")
    @Override
    public final T getItem(int index)
    {
        return (T) get(index);
    }

    @Override
    final public void setValue(int index, T value)
    {
        set(index, (JavaScriptObject) value);
    }

    @Override
    final public void addToEnd(T value)
    {
        push((JavaScriptObject) value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy