mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-29 04:57:48 +01:00
21 lines
432 B
Java
21 lines
432 B
Java
package com.usatiuk.kleppmanntree;
|
|
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
|
|
public class TestPeerInterface implements PeerInterface<Long> {
|
|
private final long selfId;
|
|
|
|
public TestPeerInterface(long selfId) {this.selfId = selfId;}
|
|
|
|
@Override
|
|
public Long getSelfId() {
|
|
return selfId;
|
|
}
|
|
|
|
@Override
|
|
public Collection<Long> getAllPeers() {
|
|
return List.of(1L, 2L, 3L, 4L);
|
|
}
|
|
}
|