FileDocCategorySizeDatePackage
MarshalQueryableArray.javaAPI DocAndroid 5.1 API7003Thu Mar 12 22:22:10 GMT 2015android.hardware.camera2.marshal.impl

MarshalQueryableArray

public class MarshalQueryableArray extends Object implements android.hardware.camera2.marshal.MarshalQueryable
Marshal any array {@code T}.

To marshal any {@code T} to/from a native type, the marshaler for T to/from that native type also has to exist.

{@code T} can be either a T2[] where T2 is an object type, or a P[] where P is a built-in primitive (e.g. int[], float[], etc).

param
the type of the array (e.g. T = int[], or T = Rational[])

Fields Summary
private static final String
TAG
private static final boolean
VERBOSE
Constructors Summary
Methods Summary
public android.hardware.camera2.marshal.MarshalercreateMarshaler(android.hardware.camera2.utils.TypeReference managedType, int nativeType)

        return new MarshalerArray(managedType, nativeType);
    
public booleanisTypeMappingSupported(android.hardware.camera2.utils.TypeReference managedType, int nativeType)

        // support both ConcreteType[] and GenericType<ConcreteType>[]
        return managedType.getRawType().isArray();

        // TODO: Should this recurse deeper and check that there is
        // a valid marshaler for the ConcreteType as well?