Package com.db4o.foundation
Class TernaryBool
- java.lang.Object
-
- com.db4o.foundation.TernaryBool
-
- All Implemented Interfaces:
java.io.Serializable
public final class TernaryBool extends java.lang.Object implements java.io.Serializable
yes/no/dontknow data type- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static TernaryBool
NO
static TernaryBool
UNSPECIFIED
static TernaryBool
YES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
booleanValue(boolean defaultValue)
boolean
definiteNo()
boolean
definiteYes()
boolean
equals(java.lang.Object obj)
static TernaryBool
forBoolean(boolean value)
int
hashCode()
boolean
isUnspecified()
java.lang.String
toString()
-
-
-
Field Detail
-
NO
public static final TernaryBool NO
-
YES
public static final TernaryBool YES
-
UNSPECIFIED
public static final TernaryBool UNSPECIFIED
-
-
Method Detail
-
booleanValue
public boolean booleanValue(boolean defaultValue)
-
isUnspecified
public boolean isUnspecified()
-
definiteYes
public boolean definiteYes()
-
definiteNo
public boolean definiteNo()
-
forBoolean
public static TernaryBool forBoolean(boolean value)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-