|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.versionone.DB
com.versionone.DB.Int
public static class DB.Int
DB Class for Integers
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.versionone.DB |
|---|
DB.BigInt, DB.Bit, DB.DateTime, DB.Int, DB.NullObject, DB.Real, DB.Str |
| Field Summary |
|---|
| Fields inherited from class com.versionone.DB |
|---|
Null |
| Constructor Summary | |
|---|---|
DB.Int()
Create a NULL integer |
|
DB.Int(int value)
Create from an int |
|
DB.Int(java.lang.Object value)
Supports creation from several types of obejct Object is | value set by calling String | Integer.valueOf(value) Number | value.intValue() Anything else causes the value to be null |
|
| Method Summary | |
|---|---|
static boolean |
compare(DB.Int a,
DB.Int b)
Static method for comparing two Int values |
boolean |
equals(java.lang.Object obj)
Compares this instance to another Int or Integer object |
java.lang.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 |
| Methods inherited from class com.versionone.DB |
|---|
hashCode, isNull, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DB.Int()
public DB.Int(int value)
value - - the desired valuepublic DB.Int(java.lang.Object value)
value - - Set value based on| Method Detail |
|---|
public java.lang.Integer getValue()
getValue in class DB
public static boolean compare(DB.Int a,
DB.Int b)
a - - Int valueb - - Int value
public boolean equals(java.lang.Object obj)
equals in class DBpublic int intValue()
java.lang.NullPointerException - if instance is nullpublic long longValue()
java.lang.NullPointerException - if instance is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||