Class Util


  • final class Util
    extends java.lang.Object
    Contains useful helper methods for classes within this package.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.lang.String[] EMPTY_STRING_ARRAY
      An empty immutable String array.
    • Constructor Summary

      Constructors 
      Constructor Description
      Util()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static java.lang.String stripLeadingAndTrailingQuotes​(java.lang.String str)
      Remove the leading and trailing quotes from str.
      (package private) static java.lang.String stripLeadingHyphens​(java.lang.String str)
      Remove the hyphens from the beginning of str and return the new String.
      • Methods inherited from class java.lang.Object

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

      • EMPTY_STRING_ARRAY

        static final java.lang.String[] EMPTY_STRING_ARRAY
        An empty immutable String array.
    • Constructor Detail

      • Util

        Util()
    • Method Detail

      • stripLeadingAndTrailingQuotes

        static java.lang.String stripLeadingAndTrailingQuotes​(java.lang.String str)
        Remove the leading and trailing quotes from str. E.g. if str is '"one two"', then 'one two' is returned.
        Parameters:
        str - The string from which the leading and trailing quotes should be removed.
        Returns:
        The string without the leading and trailing quotes.
      • stripLeadingHyphens

        static java.lang.String stripLeadingHyphens​(java.lang.String str)
        Remove the hyphens from the beginning of str and return the new String.
        Parameters:
        str - The string from which the hyphens should be removed.
        Returns:
        the new String.