class StackPeerBuilder<T : StackService> : PeerBuilder<T, BluetoothAddressNodeKey>
Builds a StackPeer with a String key
clazz
- The Class of the StackService to use with this StackPeer
stackConfig
- the StackConfig of the StackPeer's Stack
buildStackPeer
- function for building a StackPeer
StackPeerBuilder(clazz: Class<in T>, peerRole: PeerRole, stackConfig: StackConfig, buildStackPeer: (BluetoothAddressNodeKey) -> StackPeer<T>)
|
fun build(key: BluetoothAddressNodeKey): StackPeer<T>
|
|
fun doesBuild(peer: Peer<*>): Boolean
Tests if the given Peer is the same as the one this can build |