DB.BigInt, DB.Bit, DB.DateTime, DB.Int, DB.NullObject, DB.Real, DB.Str
Constructor and Description |
---|
Bit()
Default Constructor
|
Bit(boolean value)
Construct from a Boolean value
|
Bit(int value)
Create from an integer.
|
Bit(Object value)
Construct from an Object
Object Type | Value set by
Boolean | value.booleanValue
String | 0 or false - value is false
| 1 or true - value is true
| Boolean.parseBoolean(value)
Anything else creates a NULL instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
booleanValue()
Returns the value as a boolean
|
boolean |
equals(Object obj)
Compare this instance to another DB.Bit or Boolean object
|
Boolean |
getValue()
Returns the Boolean value or null if the instance is null
|
public Bit()
public Bit(boolean value)
value
- - boolean used to set valuepublic Bit(Object value)
value
- - object used to set valuepublic Bit(int value)
value
- - integer used to set valuepublic Boolean getValue()
public boolean booleanValue()
NullPointerException
- if the instance is nullCopyright © 2015 VersionOne, Inc.. All rights reserved.