Top Constructors Methods
org.freedesktop.dbus

public final Class ArrayFrob

extends Object
Class Inheritance
Imports
org.freedesktop.dbus.utils.PrimitiveUtils, org.slf4j.LoggerFactory, java.lang.reflect.Array, java.util.ArrayList, .Arrays, .List, .Map

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Object
convert(Object _o, Class<? extends Object> _c)

public static <T> T[]
delist(List<T> _l, Class<T> _c)

public static <T> Object
delistprimitive(List<T> _l, Class<T> _c)

public static Map<Class<?>, Class<?>>

Returns:

Map with primitive type and wrapper types
getPrimitiveToWrapperTypes
()
Deprecated since 5.1.1 - 2024-09-15. use PrimitiveUtils#getPrimitiveToWrapperTypes()

public static Map<Class<?>, Class<?>>

Returns:

Map with wrapper type and primitive type
getWrapperToPrimitiveTypes
()
Deprecated since 5.1.1 - 2024-09-15. use PrimitiveUtils#getWrapperToPrimitiveTypes()

public static <T> List<T>
listify(T[] _ns)

public static <T> List<T>
public static Object[]
type(Object[] _old, Class<Object> _c)

public static <T> Object
unwrap(T[] _ns)

public static <T> T[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ArrayFrobback to summary
private ArrayFrob()

Method Detail

convertback to summary
public static Object convert(Object _o, Class<? extends Object> _c) throws IllegalArgumentException
Annotations
@SuppressWarnings:unchecked
delistback to summary
public static <T> T[] delist(List<T> _l, Class<T> _c) throws IllegalArgumentException
Annotations
@SuppressWarnings:unchecked
delistprimitiveback to summary
public static <T> Object delistprimitive(List<T> _l, Class<T> _c) throws IllegalArgumentException
getPrimitiveToWrapperTypesback to summary
public static Map<Class<?>, Class<?>> getPrimitiveToWrapperTypes()

Deprecated

since 5.1.1 - 2024-09-15.

use PrimitiveUtils#getPrimitiveToWrapperTypes()

Returns:Map<Class<?>, Class<?>>

Map with primitive type and wrapper types

Annotations
@Deprecated
since:5.1.1 - 2024-09-15
getWrapperToPrimitiveTypesback to summary
public static Map<Class<?>, Class<?>> getWrapperToPrimitiveTypes()

Deprecated

since 5.1.1 - 2024-09-15.

use PrimitiveUtils#getWrapperToPrimitiveTypes()

Returns:Map<Class<?>, Class<?>>

Map with wrapper type and primitive type

Annotations
@Deprecated
since:5.1.1 - 2024-09-15
listifyback to summary
public static <T> List<T> listify(T[] _ns) throws IllegalArgumentException
listifyback to summary
public static <T> List<T> listify(Object _o) throws IllegalArgumentException
Annotations
@SuppressWarnings:unchecked
typeback to summary
public static Object[] type(Object[] _old, Class<Object> _c)
unwrapback to summary
public static <T> Object unwrap(T[] _ns) throws IllegalArgumentException
Annotations
@SuppressWarnings:unchecked
wrapback to summary
public static <T> T[] wrap(Object _o) throws IllegalArgumentException
Annotations
@SuppressWarnings:unchecked