Class W1BaseDevice

  • All Implemented Interfaces:
    W1Device

    public abstract class W1BaseDevice
    extends Object
    implements W1Device
    Author:
    Peter Schuebl
    • Constructor Detail

      • W1BaseDevice

        public W1BaseDevice​(File deviceDir)
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: W1Device
        Returns a human readable name.
        Specified by:
        getName in interface W1Device
        Returns:
        the human readable name, defaults to ID
      • getId

        public String getId()
        Description copied from interface: W1Device
        Returns the name (id/serial number) of the device e.g. 28-00000698ebb1.
        Specified by:
        getId in interface W1Device
        Returns:
        the unique device name.
      • equals

        public boolean equals​(Object obj)
        Description copied from interface: W1Device
        W1Device should be considered equal based on their ID
        Specified by:
        equals in interface W1Device
        Overrides:
        equals in class Object