public class FactMap<T> extends java.util.HashMap<java.lang.String,Fact<T>>
HashMap; it stores facts by their name and provides convenience methods for
accessing Fact objects.| Constructor and Description |
|---|
FactMap() |
| Modifier and Type | Method and Description |
|---|---|
T |
getOne()
The method getOne() gets the value of the single Fact in the FactMap.
|
T |
getValue(java.lang.String name)
The method getValue() returns the value of the Fact associated with the name passed in.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic T getOne()
public T getValue(java.lang.String name)
name - the name of the Fact