Package nz.org.riskscape.defaults.lookup
Class MapLookupTable
java.lang.Object
nz.org.riskscape.defaults.lookup.MapLookupTable
- All Implemented Interfaces:
nz.org.riskscape.engine.data.SelfDescribingScalarData
,nz.org.riskscape.engine.lookup.LookupTable
Very simple lookup table based on HashMap
. It's completely up to the user to make sure the values in the map
correspond to the advertised key and value types.
-
Constructor Summary
ConstructorDescriptionMapLookupTable
(Map<?, ?> values, nz.org.riskscape.engine.types.Type keyType, nz.org.riskscape.engine.types.Type valueType) -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.lookup.LookupTable
getLookupTableType, getScalarDataType
-
Constructor Details
-
MapLookupTable
public MapLookupTable(Map<?, ?> values, nz.org.riskscape.engine.types.Type keyType, nz.org.riskscape.engine.types.Type valueType)
-
-
Method Details
-
lookup
- Specified by:
lookup
in interfacenz.org.riskscape.engine.lookup.LookupTable
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getKeyType
public nz.org.riskscape.engine.types.Type getKeyType()- Specified by:
getKeyType
in interfacenz.org.riskscape.engine.lookup.LookupTable
-
getValueType
public nz.org.riskscape.engine.types.Type getValueType()- Specified by:
getValueType
in interfacenz.org.riskscape.engine.lookup.LookupTable
-