mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
SPI implementation
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package net.openhft.chronicle.set;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public interface SetEntryOperations<K, R> {
|
||||
|
||||
default R remove(@NotNull SetEntry<K> entry) {
|
||||
entry.doRemove();
|
||||
return null;
|
||||
}
|
||||
|
||||
default R insert(@NotNull SetAbsentEntry<K> entry) {
|
||||
entry.doInsert();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user