Package io.deephaven.engine.table.impl
Class TableKeyStateRegistry<VALUE_TYPE>
java.lang.Object
io.deephaven.engine.table.impl.TableKeyStateRegistry<VALUE_TYPE>
A registry for states keyed by
TableKey
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
computeIfAbsent
(@NotNull TableKey tableKey, @NotNull Function<TableKey, VALUE_TYPE> valueFactory) Get (or create if none exists) a value for the suppliedTableKey
.void
forEach
(@NotNull Consumer<VALUE_TYPE> consumer)
-
Constructor Details
-
TableKeyStateRegistry
public TableKeyStateRegistry()
-
-
Method Details
-
computeIfAbsent
public VALUE_TYPE computeIfAbsent(@NotNull @NotNull TableKey tableKey, @NotNull @NotNull Function<TableKey, VALUE_TYPE> valueFactory) Get (or create if none exists) a value for the suppliedTableKey
.- Parameters:
tableKey
- The table key- Returns:
- The associated value
-
forEach
-
clear
public void clear()
-