interface PeerBuilder<S : StackService, K : NodeKey<*>>
Builds a Peer with StackService of type S and key of type K and determines if an existing Peer is the same as the one's it builds
abstract fun build(key: K): Peer<S>
Builds a Peer |
|
abstract fun doesBuild(peer: Peer<*>): Boolean
Tests if the given Peer is the same as the one this can build |
class StackPeerBuilder<T : StackService> : PeerBuilder<T, BluetoothAddressNodeKey>
|