Enum Color

java.lang.Object
java.lang.Enum<Color>
mx.unam.ciencias.edd.Color
All Implemented Interfaces:
Serializable, Comparable<Color>

public enum Color extends Enum<Color>
Enumeración para colores de nodos. Es trivial agregar más colores de ser necesarios.
  • Enum Constant Details

    • NINGUNO

      public static final Color NINGUNO
      Por omisión en general no usaremos color.
    • ROJO

      public static final Color ROJO
      Rojo.
    • NEGRO

      public static final Color NEGRO
      Negro.
  • Method Details

    • values

      public static Color[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Color valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null