Enum Class CriterioOrdenacao

java.lang.Object
java.lang.Enum<CriterioOrdenacao>
br.unip.aps.sorting.CriterioOrdenacao
All Implemented Interfaces:
Serializable, Comparable<CriterioOrdenacao>, Constable

public enum CriterioOrdenacao extends Enum<CriterioOrdenacao>
Criterios de ordenacao disponiveis para os focos de incendio.
  • Enum Constant Details

  • Method Details

    • values

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

      public static CriterioOrdenacao valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • rotulo

      public String rotulo()
    • opcional

      public boolean opcional()
    • valor

      public Object valor(FocoIncendio foco)
    • comparador

      public Comparator<FocoIncendio> comparador(Ordem ordem)
      Comparador do criterio na ordem pedida; null sempre no final.
    • chaveNumerica

      public ToLongFunction<FocoIncendio> chaveNumerica(Ordem ordem)
      Chave inteira cuja ordem numerica equivale a ordem do comparador (para Radix Sort).
    • temChaveNumerica

      public boolean temChaveNumerica()
    • horaLocal

      public static int horaLocal(FocoIncendio f)
      Hora do dia em Sao Paulo (UTC-3): data_pas vem em GMT.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<CriterioOrdenacao>