text: /* file: train_result.cpp */
  /*******************************************************************************
  * Copyright 2014-2020 Intel Corporation
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *******************************************************************************/
  
  #include <jni.h>
  
  #include "com_intel_daal_algorithms_ridge_regression_training_TrainingResult.h"
  
  #include "common_helpers.h"
  
  #include "com_intel_daal_algorithms_ridge_regression_training_TrainingResultId.h"
  #define ModelId com_intel_daal_algorithms_ridge_regression_training_TrainingResultId_ModelId
  
  USING_COMMON_NAMESPACES();
  
  /*
   * Class:     com_intel_daal_algorithms_ridge_regression_training_TrainingResult
   * Method:    cNewResult
   * Signature: ()J
   */
  
  JNIEXPORT jlong JNICALL Java_com_intel_daal_algorithms_ridge_1regression_training_TrainingResult_cNewResult(JNIEnv * env, jobject thisObj)
  {
      return jniArgument<ridge_regression::training::Result>::newObj();
  }
  
  /*
   * Class:     com_intel_daal_algorithms_ridge_regression_training_TrainingResult
   * Method:    cGetModel
   * Signature:(JI)J
   */
  JNIEXPORT jlong JNICALL Java_com_intel_daal_algorithms_ridge_1regression_training_TrainingResult_cGetModel(JNIEnv * env, jobject thisObj,
                                                                                                             jlong resAddr, jint id)
  {
      if (id == ModelId)
      {
          return jniArgument<ridge_regression::training::Result>::get<ridge_regression::training::ResultId, ridge_regression::Model>(resAddr, id);
      }
  
      return (jlong)0;
  }
  