Skip to content

Commit 0b5683f

Browse files
author
Paolo Viotti
committed
add type parameter to IntegerKey
1 parent 83f9432 commit 0b5683f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/eu/antidotedb/client/IntegerKey.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import javax.annotation.CheckReturnValue;
77

8-
public class IntegerKey extends Key {
8+
public class IntegerKey extends Key<Long> {
99
IntegerKey(ByteString key) {
1010
super(AntidotePB.CRDT_type.INTEGER, key);
1111
}
@@ -40,7 +40,7 @@ public UpdateOp assign(long inc) {
4040
}
4141

4242
@Override
43-
Object readResponseToValue(AntidotePB.ApbReadObjectResp resp) {
43+
Long readResponseToValue(AntidotePB.ApbReadObjectResp resp) {
4444
return ResponseDecoder.integer().readResponseToValue(resp);
4545
}
4646
}

0 commit comments

Comments
 (0)