Example usage for com.google.gwt.core.client JsArrayBoolean push

List of usage examples for com.google.gwt.core.client JsArrayBoolean push

Introduction

In this page you can find the example usage for com.google.gwt.core.client JsArrayBoolean push.

Prototype

public final native void push(boolean value) ;

Source Link

Document

Pushes the given boolean onto the end of the array.

Usage

From source file:nz.co.doltech.gwtjui.core.client.js.JsArrayUtil.java

License:Apache License

public static JsArrayBoolean fromBooleans(Collection<Boolean> collection) {
    JsArrayBoolean array = JsArrayBoolean.createArray().cast();
    for (Boolean item : collection) {
        array.push(item);
    }//from ww w . j ava2 s  . c  om
    return array;
}

From source file:org.rstudio.core.client.js.JsUtil.java

License:Open Source License

public static JsArrayBoolean toJsArrayBoolean(Iterable<Boolean> strings) {
    JsArrayBoolean result = JsArrayBoolean.createArray().cast();
    for (Boolean s : strings)
        result.push(s);
    return result;
}

From source file:org.rstudio.core.client.js.JsUtil.java

License:Open Source License

public static JsArrayBoolean toJsArrayBoolean(Boolean[] strings) {
    JsArrayBoolean result = JsArrayBoolean.createArray().cast();
    for (Boolean s : strings)
        result.push(s);
    return result;
}