Class StringExportHelper


  • public class StringExportHelper
    extends Object
    • Method Detail

      • getObjectValue

        @Nullable
        public static @Nullable Object getObjectValue​(@Nullable
                                                      @Nullable String value)
        Convert arbitrary string to an object that is suitable for use in YAML export. Literals "true" and "false" are converted to Boolean, numbers are converted to Long. If input value is null, null is returned. If no pattern is recognized the string is returned as is.
      • getStringValue

        @Nullable
        public static @Nullable String getStringValue​(@Nullable
                                                      @Nullable Object value)
        Converts back to String using with toString method.