net.named_data.jndn.sync
public static class DigestTree.Node extends Object
Constructor and Description |
---|
DigestTree.Node(String dataPrefix,
long sessionNo,
long sequenceNo)
Create a new DigestTree.Node with the given fields and compute the digest.
|
Modifier and Type | Method and Description |
---|---|
String |
getDataPrefix() |
String |
getDigest()
Get the digest.
|
long |
getSequenceNo() |
long |
getSessionNo() |
boolean |
lessThan(DigestTree.Node node2)
Compare this Node with node2 first comparing dataPrefix_ then sessionNo_.
|
void |
setSequenceNo(long sequenceNo)
Set the sequence number and recompute the digest.
|
public DigestTree.Node(String dataPrefix, long sessionNo, long sequenceNo)
dataPrefix
- The data prefix. This is encoded as UTF-8 to digest.sessionNo
- The session number.sequenceNo
- The sequence number.public final String getDataPrefix()
public final long getSessionNo()
public final long getSequenceNo()
public final String getDigest()
public final void setSequenceNo(long sequenceNo)
sequenceNo
- The new sequence number.public final boolean lessThan(DigestTree.Node node2)
node2
- The other Node to compare.Copyright © 2016. All rights reserved.