org.gwtopenmaps.openlayers.client.util.JBoolean Maven / Gradle / Ivy
package org.gwtopenmaps.openlayers.client.util;
import org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper;
public class JBoolean extends OpenLayersObjectWrapper {
protected JBoolean(JSObject element) {
super(element);
}
public static JBoolean narrowToBooleanElement(JSObject element)
{
return ((element == null) || (!JBooleanImpl.isBoolean(element)))?null:new JBoolean(element);
}
public JBoolean(boolean bool)
{
super(JBooleanImpl.create(bool));
}
public boolean toBoolean()
{
return JBooleanImpl.toBoolean(getJSObject());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy