Top Description Fields Constructors Methods
org.hibernate.boot.model

public final Enum TruthValue

extends Enum<TruthValue>
Class Inheritance

An enumeration of truth values.

Yes this *could* be handled with Boolean, but then you run into potential problems with unwanted auto-unboxing.

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final TruthValue
public static final TruthValue
public static final TruthValue

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
toBoolean(boolean defaultValue)

public static boolean
toBoolean(TruthValue value, boolean defaultValue)

public static TruthValue
public static TruthValue[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

FALSEback to summary
public static final TruthValue FALSE
TRUEback to summary
public static final TruthValue TRUE
UNKNOWNback to summary
public static final TruthValue UNKNOWN

Constructor Detail

TruthValueback to summary
private TruthValue()

Method Detail

toBooleanback to summary
public boolean toBoolean(boolean defaultValue)
Annotations
@SuppressWarnings:SimplifiableIfStatement
toBooleanback to summary
public static boolean toBoolean(TruthValue value, boolean defaultValue)
valueOfback to summary
public static TruthValue valueOf(String name)
valuesback to summary
public static TruthValue[] values()