Class HardwareItemMap


  • public class HardwareItemMap
    extends Object
    A class that maps the supported hardware types to lists of specific hardware items.
    • Method Detail

      • newHardwareItemMap

        public static HardwareItemMap newHardwareItemMap()
        Creates a new HardwareItemMap with the supported hardware items in the active configuration.
      • newHardwareItemMap

        public static HardwareItemMap newHardwareItemMap​(com.qualcomm.robotcore.hardware.HardwareMap hardwareMap)
        Creates a new HardwareItemMap with the supported hardware items in the given HardwareMap.
      • getHardwareTypeCount

        public int getHardwareTypeCount()
        Returns the number of HardwareTypes stored in this HardwareItemMap.
      • contains

        public boolean contains​(HardwareType hardwareType)
        Returns true of this HardwareItemMap contains the given HardwareType.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object