Enum Class LighthouseOperatives

java.lang.Object
java.lang.Enum<LighthouseOperatives>
es.kukenan.smartfi.microservice.contracts.enums.LighthouseOperatives
All Implemented Interfaces:
Serializable, Comparable<LighthouseOperatives>, Constable

public enum LighthouseOperatives extends Enum<LighthouseOperatives>
Lighthouse operatives map.
  • Enum Constant Details

  • Field Details

    • skylineCode

      private final String skylineCode
      Skyline code.
    • lighthouseCode

      private final String lighthouseCode
      Lighthouse code.
  • Constructor Details

    • LighthouseOperatives

      private LighthouseOperatives(String skylineCode, String lighthouseCode)
      Constructor.
      Parameters:
      skylineCode - Skyline code
      lighthouseCode - Lighthouse code
  • Method Details

    • values

      public static LighthouseOperatives[] 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 LighthouseOperatives 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
    • findBySkylineCode

      public static LighthouseOperatives findBySkylineCode(String code)
      Find operative by Skyline code.
      Parameters:
      code - Skyline code
      Returns:
      The LighthouseOperatives found or null