int function ( ) { if ( this . isTrue ( ) ) { return Boolean . hashCode ( true ) ; } else if ( this . isFalse ( ) ) { return Boolean . hashCode ( false ) ; } else { return Byte . hashCode ( value ) ; } }
implementation note : this hash code should be consistent with boolean #hashcode . concode_field_sep Trilean TRUE concode_elem_sep long serialVersionUID concode_elem_sep Trilean FALSE concode_elem_sep Trilean UNKNOWN concode_elem_sep byte value concode_field_sep Trilean or concode_elem_sep boolean isFalse concode_elem_sep boolean isTrue concode_elem_sep Trilean not concode_elem_sep Boolean toBooleanOrNull concode_elem_sep boolean toBoolean concode_elem_sep boolean isUnknown concode_elem_sep Trilean and concode_elem_sep boolean equals concode_elem_sep boolean isKnown concode_elem_sep String toString concode_elem_sep Trilean from concode_elem_sep Trilean fromString