Package org.klomp.snark.dht
Class NID
java.lang.Object
net.i2p.data.SimpleDataStructure
net.i2p.crypto.SHA1Hash
org.klomp.snark.dht.NID
- All Implemented Interfaces:
DataStructure
public class NID extends SHA1Hash
A 20-byte peer ID, used as a Map key in lots of places.
Must be public for constructor in KBucketSet.generateRandomKey()
- Since:
- 0.9.2
- Author:
- zzz
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description long
lastSeen()
void
setLastSeen()
boolean
timeout()
Methods inherited from class net.i2p.data.SimpleDataStructure
calculateHash, equals, fromBase64, fromByteArray, getData, read, toBase64, toByteArray, toString, writeBytes
-
Constructor Details
-
Method Details
-
lastSeen
public long lastSeen() -
setLastSeen
public void setLastSeen() -
timeout
public boolean timeout()- Returns:
- if more than max timeouts
-