javadocs github pages (#7)

* javadocs github pages

* fix

* fix

* proper pages
This commit is contained in:
2025-05-12 16:13:42 +02:00
committed by GitHub
parent 0c3524851e
commit 757a0bbc8a
2 changed files with 37 additions and 35 deletions

View File

@@ -1,32 +0,0 @@
package com.usatiuk.kleppmanntree;
import java.io.Serializable;
public class AtomicClock implements Clock<Long>, Serializable {
private long _max = 0;
public AtomicClock(long counter) {
_max = counter;
}
@Override
public Long getTimestamp() {
return ++_max;
}
public void setTimestamp(Long timestamp) {
_max = timestamp;
}
@Override
public Long peekTimestamp() {
return _max;
}
@Override
public Long updateTimestamp(Long receivedTimestamp) {
var old = _max;
_max = Math.max(_max, receivedTimestamp) + 1;
return old;
}
}