Class WebThingServer.SingleThing

  • Enclosing class:
    WebThingServer

    public static class WebThingServer.SingleThing
    extends java.lang.Object
    A container for a single thing.
    • Constructor Summary

      Constructors 
      Constructor Description
      SingleThing​(java.lang.String id, Thing thing)
      Initialize the container.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getId()  
      java.lang.String getName()
      Get the mDNS server name.
      Thing getThing​(java.lang.String id)
      Get the thing at the given index.
      java.util.HashMap<java.lang.String,​Thing> getThings()
      Get the list of things.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SingleThing

        public SingleThing​(java.lang.String id,
                           Thing thing)
        Initialize the container.
        Parameters:
        id - thing id
        thing - The thing to store
    • Method Detail

      • getId

        public java.lang.String getId()
      • getThing

        public Thing getThing​(java.lang.String id)
        Get the thing at the given index.
        Parameters:
        id - The index.
      • getThings

        public java.util.HashMap<java.lang.String,​Thing> getThings()
        Get the list of things.
        Returns:
        The list of things.
      • getName

        public java.lang.String getName()
        Get the mDNS server name.
        Returns:
        The server name.