@Functional
  public int getDbValue() {
    switch (this) {
      case YES:
        return 1;
      case NO:
        return 2;
      case UNSET:
      default:
        return 3;
    }
  }
Returns the {@code Boolean} value that corresponds to this {@link TriState}, if appropriate.

@return {@link Boolean#TRUE} if {@code this} is {@link TriState#YES} or {@link Boolean#FALSE}
    if {@code this} is {@link TriState#NO} or {@code null} if {@code this} is {@link
    TriState#UNSET}.
fbcore/src/main/java/com/facebook/common/util/TriState.java