Example usage for jdk.nashorn.internal.objects NativeBoolean constructor

List of usage examples for jdk.nashorn.internal.objects NativeBoolean constructor

Introduction

In this page you can find the example usage for jdk.nashorn.internal.objects NativeBoolean constructor.

Prototype

@Constructor(arity = 1)
public static Object constructor(final boolean newObj, final Object self, final Object value) 

Source Link

Document

ECMA 15.6.2.1 new Boolean (value)

Usage

From source file:org.bson.jvm.nashorn.NativeBooleanCodec.java

License:Apache License

public NativeBoolean decode(BsonReader reader, DecoderContext decoderContext) {
    return (NativeBoolean) NativeBoolean.constructor(true, null, reader.readBoolean());
}