Files
Chronicle-Map/src/main/java/net/openhft/chronicle/set/SetEntryOperations.java
T
2015-05-27 00:03:20 +01:00

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;
}
}