Package org.datavec.api.util
Class ReflectionUtils
- java.lang.Object
-
- org.datavec.api.util.ReflectionUtils
-
@Deprecated public class ReflectionUtils extends Object
Deprecated.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> T
copy(Configuration conf, T src, T dst)
Deprecated.Make a copy of the writable object using serialization to a bufferstatic <T> T
newInstance(Class<T> theClass, Configuration conf)
Deprecated.Create an object for the given class and initialize it from confstatic void
setConf(Object theObject, Configuration conf)
Deprecated.Check and set 'configuration' if necessary.
-
-
-
Method Detail
-
newInstance
public static <T> T newInstance(Class<T> theClass, Configuration conf)
Deprecated.Create an object for the given class and initialize it from conf- Parameters:
theClass
- class of which an object is createdconf
- Configuration- Returns:
- a new object
-
setConf
public static void setConf(Object theObject, Configuration conf)
Deprecated.Check and set 'configuration' if necessary.- Parameters:
theObject
- object for which to set configurationconf
- Configuration
-
copy
public static <T> T copy(Configuration conf, T src, T dst) throws IOException
Deprecated.Make a copy of the writable object using serialization to a buffer- Parameters:
dst
- the object to copy fromsrc
- the object to copy into, which is destroyed- Throws:
IOException
-
-