Class LongArrayConverter

  • All Implemented Interfaces:
    Converter

    @Deprecated
    public final class LongArrayConverter
    extends AbstractArrayConverter
    Deprecated.
    Replaced by the new ArrayConverter implementation

    Standard Converter implementation that converts an incoming String into a primitive array of long. On a conversion failure, returns a specified default value or throws a ConversionException depending on how this instance is constructed.

    Since:
    1.4
    Version:
    $Id: LongArrayConverter.java 1454606 2013-03-08 22:30:51Z britter $
    • Field Detail

      • MODEL

        private static final long[] MODEL
        Deprecated.

        Model object for type comparisons.

    • Constructor Detail

      • LongArrayConverter

        public LongArrayConverter()
        Deprecated.
        Create a Converter that will throw a ConversionException if a conversion error occurs.
      • LongArrayConverter

        public LongArrayConverter​(java.lang.Object defaultValue)
        Deprecated.
        Create a Converter that will return the specified default value if a conversion error occurs.
        Parameters:
        defaultValue - The default value to be returned
    • Method Detail

      • convert

        public java.lang.Object convert​(java.lang.Class type,
                                        java.lang.Object value)
        Deprecated.
        Convert the specified input object into an output object of the specified type.
        Specified by:
        convert in interface Converter
        Specified by:
        convert in class AbstractArrayConverter
        Parameters:
        type - Data type to which this value should be converted
        value - The input value to be converted
        Returns:
        the converted value
        Throws:
        ConversionException - if conversion cannot be performed successfully