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

org.gwtopenmaps.openlayers.client.util.JArrayBaseImpl Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
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