BooleanTriState.java

  1. /*
  2.  * Copyright (C) 2021 Simeon Andreev <simeon.danailov.andreev@gmail.com> and others
  3.  *
  4.  * This program and the accompanying materials are made available under the
  5.  * terms of the Eclipse Distribution License v. 1.0 which is available at
  6.  * https://www.eclipse.org/org/documents/edl-v10.php.
  7.  *
  8.  * SPDX-License-Identifier: BSD-3-Clause
  9.  */
  10. package org.eclipse.jgit.lib.internal;

  11. /**
  12.  * A boolean value that can also have an unset state.
  13.  */
  14. public enum BooleanTriState {
  15.     /**
  16.      * Value equivalent to {@code true}.
  17.      */
  18.     TRUE,
  19.     /**
  20.      * Value equivalent to {@code false}.
  21.      */
  22.     FALSE,
  23.     /**
  24.      * Value is not set.
  25.      */
  26.     UNSET;
  27. }