public static Parameters fromConfig ( ConfigParams config ) { Parameters result = new Parameters ( ) ; if ( config == null || config . size ( ) == 0 ) return result ; for ( Map . Entry < String , String > entry : config . entrySet ( ) ) { result . put ( entry . getKey ( ) , entry . getValue ( ) ) ; } return result ; }
Creates new Parameters from ConfigMap object .