Package microsim.data
Class MultiKeyCoefficientMapFactory
java.lang.Object
microsim.data.MultiKeyCoefficientMapFactory
This class allows creation of
MultiKeyCoefficientMap
from an annotated list.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MultiKeyCoefficientMap
createMapFromAnnotatedList
(@NonNull List<?> list) Creates aMultiKeyCoefficientMap
and adds values from thelist
to it according to the providedCoefficientMapping
class annotation.
-
Constructor Details
-
MultiKeyCoefficientMapFactory
public MultiKeyCoefficientMapFactory()
-
-
Method Details
-
createMapFromAnnotatedList
Creates aMultiKeyCoefficientMap
and adds values from thelist
to it according to the providedCoefficientMapping
class annotation.- Parameters:
list
- A list of objects that are supposed to be annotated.- Returns:
- a
MultiKeyCoefficientMap
. - Throws:
IllegalArgumentException
- when the input list length is0
; when objects in the list are not annotated withCoefficientMapping
; when the number of keys exceeds5
.NullPointerException
- whenlist
isnull
.
-