Package microsim.data
Class MultiKeyCoefficientMapFactory
java.lang.Object
microsim.data.MultiKeyCoefficientMapFactory
This class allows creation of
MultiKeyCoefficientMap from an annotated list.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MultiKeyCoefficientMapcreateMapFromAnnotatedList(@NonNull List<?> list) Creates aMultiKeyCoefficientMapand adds values from thelistto it according to the providedCoefficientMappingclass annotation.
-
Constructor Details
-
MultiKeyCoefficientMapFactory
public MultiKeyCoefficientMapFactory()
-
-
Method Details
-
createMapFromAnnotatedList
Creates aMultiKeyCoefficientMapand adds values from thelistto it according to the providedCoefficientMappingclass 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- whenlistisnull.
-