Class WebThingServer.MultipleThings

  • Enclosing class:
    WebThingServer

    public static class WebThingServer.MultipleThings
    extends java.lang.Object
    A container for multiple things.
    • Constructor Summary

      Constructors 
      Constructor Description
      MultipleThings​(java.util.HashMap<java.lang.String,​Thing> things, java.lang.String name)
      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

      • MultipleThings

        public MultipleThings​(java.util.HashMap<java.lang.String,​Thing> things,
                              java.lang.String name)
        Initialize the container.
        Parameters:
        things - The things to store
        name - The mDNS server name
    • Method Detail

      • 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.
      • getId

        public java.lang.String getId()