public class

Boolean

extends Unit
java.lang.Object
   ↳ com.openxc.units.Unit
     ↳ com.openxc.units.Boolean

Class Overview

A boolean type of Unit. This class handles converting to a boolean from numerical measurements.

Summary

Public Constructors
Boolean(boolean value)
Construct a new Boolean from the given value.
Boolean(Number value)
Construct a Boolean from the numerical value.
Public Methods
boolean booleanValue()
boolean equals(Object obj)
Boolean getSerializedValue()
String toString()
[Expand]
Inherited Methods
From class com.openxc.units.Unit
From class java.lang.Object

Public Constructors

public Boolean (boolean value)

Construct a new Boolean from the given value.

Parameters
value the boolean value.

public Boolean (Number value)

Construct a Boolean from the numerical value.

Parameters
value If the value == 1, the constructed object will be true.

Public Methods

public boolean booleanValue ()

public boolean equals (Object obj)

public Boolean getSerializedValue ()

public String toString ()