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)
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 reasonSetEntry.doRemove()
on the given entry and
returns null
.default R insert(@NotNull SetAbsentEntry<K> absentEntry)
the key
from
the given insertion context (absentEntry
).IllegalStateException
- if some locking/state conditions required to perform insertion
operation are not metRuntimeException
- if insertion was unconditionally unsuccessful due to any reasonSetAbsentEntry.doInsert()
and returns
null
.Copyright © 2020. All rights reserved.