Scripting API

Home Scripting API Index Class Overview

nlvm.lang

Class Boolean


public final class Boolean
extends Object

Immutable object wrapper for bool

Constructor Summary

Boolean(bool b)
    Create an immutable object with a specific bool value.


Method Summary

bool boolValue()
  Return the bool value
bool equals(Object obj)
int hashCode()
String toString()
static Boolean valueOf(bool b)
  Return an immutable object with a specific bool value.


Constructor Detail


Boolean

public Boolean(bool b)

Create an immutable object with a specific bool value.

Prefer using Boolean.valueOf which might be more efficient because it re-uses singletons.


Method Detail


boolValue

public bool boolValue()

Return the bool value

Returns:
    the bool value


equals

public bool equals(Object obj)


hashCode

public int hashCode()


toString

public String toString()


valueOf

public static Boolean valueOf(bool b)

Return an immutable object with a specific bool value.

This method re-uses singletons.