Class IntArrayConverterImpl

  • All Implemented Interfaces:
    FieldConverter<String,​Object>

    public class IntArrayConverterImpl
    extends Object
    implements FieldConverter<String,​Object>
    Converter that works on simple datatype array int[], which can't be cast to Object[]. We duplicate code here because this is more efficient than casting int[] to Integer[]
    Since:
    1.0
    Author:
    Oliver Krauss
    • Constructor Detail

      • IntArrayConverterImpl

        public IntArrayConverterImpl()
    • Method Detail

      • toJavaValue

        public Object toJavaValue​(Object uncastCurrentValue,
                                  Object newValue)
        Description copied from interface: FieldConverter
        Transforms from db value to value understood by the java class
        Specified by:
        toJavaValue in interface FieldConverter<String,​Object>
        Parameters:
        uncastCurrentValue - value the java object has right now
        newValue - db to be transformed
        Returns:
        Java value