Class ConversionUtil


  • public final class ConversionUtil
    extends java.lang.Object
    Conversion utility class to parse a property represented as a string or an object.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.regex.Pattern ARRAY_DELIM  
      private static java.lang.String[] INTEGERS  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ConversionUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean toBoolean​(java.lang.Object value)
      Converts the specified object into a boolean.
      static int toInt​(java.lang.Object value)
      Converts the specified object into an integer.
      static java.lang.String toString​(int value)  
      static java.lang.String[] toStringArray​(java.lang.Object value)
      Converts the specified object into an array of strings.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ARRAY_DELIM

        private static final java.util.regex.Pattern ARRAY_DELIM
      • INTEGERS

        private static final java.lang.String[] INTEGERS
    • Constructor Detail

      • ConversionUtil

        private ConversionUtil()
    • Method Detail

      • toInt

        public static int toInt​(java.lang.Object value)
        Converts the specified object into an integer.
      • toBoolean

        public static boolean toBoolean​(java.lang.Object value)
        Converts the specified object into a boolean.
      • toStringArray

        public static java.lang.String[] toStringArray​(java.lang.Object value)
        Converts the specified object into an array of strings.
      • toString

        public static java.lang.String toString​(int value)