Package com.illumon.iris.db.v2
Class TableKeyStateRegistry<VALUE_TYPE>
java.lang.Object
com.illumon.iris.db.v2.TableKeyStateRegistry<VALUE_TYPE>
public class TableKeyStateRegistry<VALUE_TYPE> extends Object
A registry for states keyed by
TableKey.-
Constructor Summary
Constructors Constructor Description TableKeyStateRegistry() -
Method Summary
Modifier and Type Method Description voidclear()VALUE_TYPEcomputeIfAbsent(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()
-