Enum Class EquipmentDatabaseCategory

java.lang.Object
java.lang.Enum<EquipmentDatabaseCategory>
megameklab.ui.util.EquipmentDatabaseCategory
All Implemented Interfaces:
Serializable, Comparable<EquipmentDatabaseCategory>, Constable

public enum EquipmentDatabaseCategory extends Enum<EquipmentDatabaseCategory>
Equipment categories used for filtering the equipment database and deciding which filters to show.
  • Enum Constant Details

  • Method Details

    • values

      public static EquipmentDatabaseCategory[] 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 EquipmentDatabaseCategory 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
    • getDisplayName

      public String getDisplayName()
    • showFilterFor

      public boolean showFilterFor(megamek.common.units.Entity en)
    • passesFilter

      public boolean passesFilter(megamek.common.equipment.EquipmentType eq, megamek.common.units.Entity en)
    • getShowFilters

      public static Set<EquipmentDatabaseCategory> getShowFilters()
      Returns:
      a Set of the filters that should act as "Show..." filters.
    • getHideFilters

      public static Set<EquipmentDatabaseCategory> getHideFilters()
      Returns:
      a Set of the filters that should act as "Hide..." filters.
    • isIndustrialEquipment

      public static boolean isIndustrialEquipment(megamek.common.equipment.EquipmentType equipment)
      Returns true if the given equipment is an Industrial Equipment such as a Backhoe (TM, pp. 241-249). Note: This check has nothing to do with Industrial Meks.
      Parameters:
      equipment - The equipment to check
      Returns:
      true if the equipment is "Industrial" equipment