K - the set key typeR - methods return type, used for communication between lower- and higher-level SPIpublic interface SetEntryOperations<K,R>
ChronicleSet
entries.| Modifier and Type | Method and Description |
|---|---|
default R |
insert(SetAbsentEntry<K> absentEntry)
Inserts the new entry into the set, of
the key from
the given insertion context (absentEntry). |
default R |
remove(SetEntry<K> entry)
Removes the given entry from the set.
|
default R remove(@NotNull SetEntry<K> entry)
SetEntry.doRemove() on the given entry and
returns null.entry - the entry to removeIllegalStateException - if some locking/state conditions required to perform remove
operation are not metRuntimeException - if removal was unconditionally unsuccessful due to any reasondefault R insert(@NotNull SetAbsentEntry<K> absentEntry)
the key from
the given insertion context (absentEntry).
Note: default implementation calls SetAbsentEntry.doInsert() and returns
null.IllegalStateException - if some locking/state conditions required to perform insertion
operation are not metRuntimeException - if insertion was unconditionally unsuccessful due to any reasonCopyright © 2024. All rights reserved.