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.Serializableyes/no/dontknow data type- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static TernaryBoolNOstatic TernaryBoolUNSPECIFIEDstatic TernaryBoolYES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbooleanValue(boolean defaultValue)booleandefiniteNo()booleandefiniteYes()booleanequals(java.lang.Object obj)static TernaryBoolforBoolean(boolean value)inthashCode()booleanisUnspecified()java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-