mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
17 lines
349 B
Java
17 lines
349 B
Java
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;
|
|
}
|
|
}
|