Class ParameterGrabber
java.lang.Object
ubic.basecode.dataStructure.params.ParameterGrabber
Generates a parameter map from a class using reflection, usefull for storing experimental parameters
- Author:
- leon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGiven an instance of a class this method will extract its primitive variable names and their values using reflection.static String
paramsToLine
(Map<String, String> params) static String
paramsToLine
(Map<String, String> params, boolean sort)
-
Constructor Details
-
ParameterGrabber
public ParameterGrabber()
-
-
Method Details
-
getParams
Given an instance of a class this method will extract its primitive variable names and their values using reflection.- Parameters:
c
- - classo
- - object- Returns:
-
paramsToLine
-
paramsToLine
-