Class LDUtil


  • public class LDUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      LDUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String sanitizeSpaces​(java.lang.String s)
      Replaces spaces with hyphens.
      static java.lang.String validateStringValue​(java.lang.String s)  
      • Methods inherited from class java.lang.Object

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

      • LDUtil

        public LDUtil()
    • Method Detail

      • validateStringValue

        @Nullable
        public static java.lang.String validateStringValue​(@NonNull
                                                           java.lang.String s)
        Parameters:
        s - the string to validate
        Returns:
        null if valid, otherwise string describing issue
      • sanitizeSpaces

        public static java.lang.String sanitizeSpaces​(java.lang.String s)
        Replaces spaces with hyphens. In the future, if this function is made more generic, understand that customer data may already exist and changing this sanitization may have adverse consequences.
        Parameters:
        s - the string to sanitize
        Returns:
        the sanitized string