Class PrimitiveArrayWrapper<I,​O,​W extends PrimitiveArray<I,​O>>

    • Constructor Detail

      • PrimitiveArrayWrapper

        public PrimitiveArrayWrapper()
    • Method Detail

      • convert

        public <T> T convert​(Object src,
                             Class<T> dest)
        Description copied from interface: Converter
        Converts the given object to an object of the specified type. The object is casted directly if possible, or else a new object is created using the destination type's public constructor that takes the original object as input (except when converting to String, which uses the Object.toString() method instead). In the case of primitive types, returns an object of the corresponding wrapped type. If the destination type does not have an appropriate constructor, returns null.
        Type Parameters:
        T - Type to which the object should be converted.
        Parameters:
        src - The object to convert.
        dest - Type to which the object should be converted.