ConvertService
and Types
@Deprecated public class ConversionUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
canAssign(Class<?> src,
Class<?> dest)
|
static boolean |
canAssign(Object src,
Class<?> dest)
Deprecated.
|
static boolean |
canCast(Class<?> src,
Class<?> dest)
|
static boolean |
canCast(Object src,
Class<?> dest)
Deprecated.
|
static boolean |
canConvert(Class<?> src,
Class<?> dest)
Deprecated.
|
static boolean |
canConvert(Class<?> src,
Type dest)
Deprecated.
|
static boolean |
canConvert(Object src,
Class<?> dest)
Deprecated.
|
static boolean |
canConvert(Object src,
Type dest)
Deprecated.
|
static <T> T |
cast(Object src,
Class<T> dest)
Deprecated.
|
static <T> T |
convert(Object src,
Class<T> dest)
Deprecated.
|
static Object |
convert(Object src,
Type dest)
Deprecated.
|
static <T> T |
convertToEnum(String src,
Class<T> dest)
Deprecated.
|
static Class<?> |
getClass(Type type)
Deprecated.
|
static Class<?> |
getComponentClass(Type type)
Deprecated.
|
static <T> Class<T> |
getNonprimitiveType(Class<T> type)
Deprecated.
|
static <T> T |
getNullValue(Class<T> type)
Deprecated.
Use
Types.nullValue(java.lang.Class<T>) instead. |
static <T> Class<T> |
getPrimitiveType(Class<T> type)
Deprecated.
|
static void |
setDelegateService(ConvertService convertService,
double priority)
Deprecated.
Sets the
ConvertService to use for handling conversion requests. |
public static void setDelegateService(ConvertService convertService, double priority)
ConvertService
to use for handling conversion requests.@Deprecated public static Object convert(Object src, Type dest)
Converter.convert(Object, Type)
@Deprecated public static <T> T convert(Object src, Class<T> dest)
Converter.convert(Object, Class)
@Deprecated public static boolean canConvert(Class<?> src, Type dest)
Converter.canConvert(Class, Type)
@Deprecated public static boolean canConvert(Class<?> src, Class<?> dest)
Converter.canConvert(Class, Class)
@Deprecated public static boolean canConvert(Object src, Type dest)
Converter.canConvert(Object, Type)
@Deprecated public static boolean canConvert(Object src, Class<?> dest)
Converter.canConvert(Object, Class)
@Deprecated public static <T> T convertToEnum(String src, Class<T> dest)
Types.enumValue(java.lang.String, java.lang.Class<T>)
@Deprecated public static Class<?> getClass(Type type)
Types.raw(java.lang.reflect.Type)
@Deprecated public static <T> T cast(Object src, Class<T> dest)
Types.cast(java.lang.Object, java.lang.Class<T>)
@Deprecated public static boolean canAssign(Class<?> src, Class<?> dest)
@Deprecated public static boolean canAssign(Object src, Class<?> dest)
Types.isInstance(java.lang.Object, java.lang.Class<?>)
@Deprecated public static boolean canCast(Class<?> src, Class<?> dest)
@Deprecated public static boolean canCast(Object src, Class<?> dest)
Types.isInstance(java.lang.Object, java.lang.Class<?>)
@Deprecated public static Class<?> getComponentClass(Type type)
Types.raws(java.lang.reflect.Type)
and Types.component(java.lang.reflect.Type)
@Deprecated public static <T> Class<T> getPrimitiveType(Class<T> type)
Types.unbox(java.lang.Class<T>)
@Deprecated public static <T> Class<T> getNonprimitiveType(Class<T> type)
Types.box(java.lang.Class<T>)
@Deprecated public static <T> T getNullValue(Class<T> type)
Types.nullValue(java.lang.Class<T>)
instead.Copyright © 2015–2022 SciJava. All rights reserved.