Class NumericObjectArrayStringConverterFactory

  • All Implemented Interfaces:
    StringConverterFactory

    public final class NumericObjectArrayStringConverterFactory
    extends java.lang.Object
    implements StringConverterFactory
    Factory for StringConverter providing support for numeric object arrays as a comma separated list, using '-' for null.

    To use, simply register the instance with a StringConvert instance.

    This class is immutable and thread-safe.

    Since:
    1.5
    • Method Detail

      • findConverter

        public StringConverter<?> findConverter​(java.lang.Class<?> cls)
        Finds a converter by type.
        Specified by:
        findConverter in interface StringConverterFactory
        Parameters:
        cls - the type to lookup, not null
        Returns:
        the converter, null if not found
        Throws:
        java.lang.RuntimeException - (or subclass) if source code is invalid
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object