org.gwtopenmaps.openlayers.client.util.JArrayBaseImpl Maven / Gradle / Ivy
package org.gwtopenmaps.openlayers.client.util;
class JArrayBaseImpl
{
protected static native JSObject create(int length) /*-{
if (length < 0)
{
return new Array();
}
else
{
return new Array(length);
}
}-*/;
public static native int arrayLength(JSObject array) /*-{
if (array === undefined) return -1;
return array.length;
}-*/;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy