abstract fun contains(identifier: String): Boolean
(source)
Checks whether the identifier of the remote peer is present in the repository.
identifier
- the identifier of a remote peer
Return
true if the remote peer identifier is present in the repository
abstract fun contains(identifier: String, fingerprint: Bytes): Boolean
(source)
Checks whether the identifier of the remote peer is present in the repository, and its fingerprint matches the fingerprint present.
identifier
- the identifier of a remote peer
fingerprint
- the fingerprint of a remote peer
Return
true if there is a peer in the repository associated with that fingerprint