LowpanIdentity.Builder
public
static
class
LowpanIdentity.Builder
extends Object
java.lang.Object | |
↳ | com.google.android.things.lowpan.LowpanIdentity.Builder |
Builder class for constructing instances of LowpanIdentity.
Summary
Public constructors | |
---|---|
LowpanIdentity.Builder()
|
Public methods | |
---|---|
LowpanIdentity
|
build()
Builds a LowpanIdentity object based on the previously set criteria. |
LowpanIdentity.Builder
|
setChannel(int x)
Sets the channel of the network. |
LowpanIdentity.Builder
|
setName(String x)
Sets the name of the network. |
LowpanIdentity.Builder
|
setPanid(int x)
Sets the PANID of the network. |
LowpanIdentity.Builder
|
setRawName(byte[] x)
Sets the name of the network using raw bytes. |
LowpanIdentity.Builder
|
setXpanid(byte[] x)
Sets the XPANID of the network. |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Public constructors
LowpanIdentity.Builder
LowpanIdentity.Builder ()
Public methods
build
LowpanIdentity build ()
Builds a LowpanIdentity object based on the previously set criteria.
Returns | |
---|---|
LowpanIdentity |
setChannel
LowpanIdentity.Builder setChannel (int x)
Sets the channel of the network.
Parameters | |
---|---|
x |
int |
Returns | |
---|---|
LowpanIdentity.Builder |
setName
LowpanIdentity.Builder setName (String x)
Sets the name of the network.
If the given string isn't normalized, the actual name set will be normalized automatically. If you need to set the exact byte value for the network name, use #setRawName instead.
Parameters | |
---|---|
x |
String |
Returns | |
---|---|
LowpanIdentity.Builder |
See also:
setPanid
LowpanIdentity.Builder setPanid (int x)
Sets the PANID of the network.
Parameters | |
---|---|
x |
int |
Returns | |
---|---|
LowpanIdentity.Builder |
setRawName
LowpanIdentity.Builder setRawName (byte[] x)
Sets the name of the network using raw bytes.
The use of this method should only be necessary in extraordinary circumstances. In almost all cases, you should use #setName instead.
Parameters | |
---|---|
x |
byte |
Returns | |
---|---|
LowpanIdentity.Builder |
See also:
setXpanid
LowpanIdentity.Builder setXpanid (byte[] x)
Sets the XPANID of the network.
Parameters | |
---|---|
x |
byte |
Returns | |
---|---|
LowpanIdentity.Builder |
Classes
Exceptions