Package com.gears42.iot.webthing
Class WebThingServer.MultipleThings
- java.lang.Object
-
- com.gears42.iot.webthing.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.
-
-
-
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 storename
- 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()
-
-