Class HueBridge

java.lang.Object
io.github.zeroone3010.yahueapi.HueBridge

public class HueBridge
extends java.lang.Object
A class representing a Hue Bridge in the application initialization phase. Most people are likely to have just one of these.
  • Constructor Summary

    Constructors 
    Constructor Description
    HueBridge​(java.lang.String ip)  
    HueBridge​(java.lang.String ip, java.lang.String name, java.lang.String mac)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    java.lang.String getIp()
    Returns the IP address of the Bridge.
    java.lang.String getMac()
    Returns the MAC address of the Bridge.
    java.lang.String getName()
    Returns the human-readable name of the Bridge.
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • HueBridge

      public HueBridge​(java.lang.String ip)
    • HueBridge

      public HueBridge​(java.lang.String ip, java.lang.String name, java.lang.String mac)
  • Method Details

    • getName

      public java.lang.String getName()
      Returns the human-readable name of the Bridge.
      Returns:
      The name of the Bridge.
    • getIp

      public java.lang.String getIp()
      Returns the IP address of the Bridge.
      Returns:
      The IP address of the Bridge.
    • getMac

      public java.lang.String getMac()
      Returns the MAC address of the Bridge.
      Returns:
      The MAC address of the Bridge.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object