class_docstr: Utility class to help create wrapper classes from Java/Scala
  implementations of pipeline components.
class_docstr_tok: ["Utility","class","to","help","create","wrapper","classes","from","Java\/Scala","implementations","of","pipeline","components","."]
docstr: Transfer this instance's Params to the wrapped Java object, and return the Java object.
  Used for ML persistence.
  
  Meta-algorithms such as Pipeline should override this method.
  
  Returns
  -------
  py4j.java_gateway.JavaObject
      Java object equivalent to this instance.
docstr_tok: ["Transfer","this","instance","'s","Params","to","the","wrapped","Java","object",",","and","return","the","Java","object",".","Used","for","ML","persistence",".","Meta-algorithms","such","as","Pipeline","should","override","this","method",".","Returns","--","--","--","-","py4j.java_gateway.JavaObject","Java","object","equivalent","to","this","instance","."]
code: def _to_java(self) -> "JavaObject":
      """
      Transfer this instance's Params to the wrapped Java object, and return the Java object.
      Used for ML persistence.
  
      Meta-algorithms such as Pipeline should override this method.
  
      Returns
      -------
      py4j.java_gateway.JavaObject
          Java object equivalent to this instance.
      """
      self._transfer_params_to_java()
      return self._java_obj
  
imports: from abc import ABCMeta, abstractmethod
  from typing import Any, Generic, Optional, List, Type, TypeVar, TYPE_CHECKING
  from pyspark import since
  from pyspark import SparkContext
  from pyspark.sql import DataFrame
  from pyspark.ml import Estimator, Predictor, PredictionModel, Transformer, Model
  from pyspark.ml.base import _PredictorParams
  from pyspark.ml.param import Param, Params
  from pyspark.ml.util import _jvm
  from pyspark.ml.common import inherit_doc, _java2py, _py2java
label_desc: Use image node_id 8 for calling the JavaParams obj's underlying member method code with example usage: obj._to_java() and returns: self