Package com.illumon.iris.db.v2
Class TableKeyStateRegistry<VALUE_TYPE>
java.lang.Object
com.illumon.iris.db.v2.TableKeyStateRegistry<VALUE_TYPE>
A registry for states keyed by
TableKey.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()computeIfAbsent(TableKey tableKey, Function<TableKey, VALUE_TYPE> valueFactory) Get (or create if none exists) a value for the suppliedTableKey.voidforEach(Consumer<VALUE_TYPE> consumer)
-
Constructor Details
-
TableKeyStateRegistry
public TableKeyStateRegistry()
-
-
Method Details
-
computeIfAbsent
public VALUE_TYPE computeIfAbsent(@NotNull TableKey tableKey, @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()
-