DB.BigInt, DB.Bit, DB.DateTime, DB.Int, DB.NullObject, DB.Real, DB.Str
Constructor and Description |
---|
Int()
Create a NULL integer
|
Int(int value)
Create from an int
|
Int(Object value)
Supports creation from several types of object
Object is | value set by calling
String | Integer.valueOf(value)
Number | value.intValue()
Anything else causes the value to be null
|
Modifier and Type | Method and Description |
---|---|
static boolean |
compare(DB.Int a,
DB.Int b)
Static method for comparing two Int values
|
boolean |
equals(Object obj)
Compares this instance to another Int or Integer object
|
Integer |
getValue()
If this instance is not null, return an Integer object otherwise return null
|
int |
intValue()
Return the int value of this object
|
long |
longValue()
Return the long value of this object
|
public Int()
public Int(int value)
value
- - the desired valuepublic Int(Object value)
value
- - Set value based onpublic Integer getValue()
public static boolean compare(DB.Int a, DB.Int b)
a
- - Int valueb
- - Int valuepublic boolean equals(Object obj)
public int intValue()
NullPointerException
- if instance is nullpublic long longValue()
NullPointerException
- if instance is nullCopyright © 2015 VersionOne, Inc.. All rights reserved.