/** * Looks up a <code>KademliaPeer</code> by I2P destination. If the bucket * doesn't contain the peer, <code>null</code> is returned. * @param destination */ protected KademliaPeer getPeer(Destination destination) { int index = getPeerIndex(destination); if (index >= 0) return peers.get(index); else return null; }