Class UtilityFunctions


  • public final class UtilityFunctions
    extends Object
    Series of useful utility functions to make life easy
    Author:
    Mark Collin
    • Method Detail

      • humanReadableCommandLineOutput

        public static String humanReadableCommandLineOutput​(List<String> arguments)
        Build a human readable command line from the arguments set by the plugin
        Parameters:
        arguments - Array of String
        Returns:
        String
      • stripCarriageReturns

        public static String stripCarriageReturns​(String value)
        Utility function to strip carriage returns out of a String
        Parameters:
        value - String
        Returns:
        String
      • isNotSet

        public static Boolean isNotSet​(Map<?,​?> value)
        Utility function to check if a Map is defined and not empty
        Parameters:
        value - Map
        Returns:
        boolean
      • isNotSet

        public static Boolean isNotSet​(List<?> value)
        Utility function to check if a List is defined and not empty
        Parameters:
        value - List
        Returns:
        boolean
      • isNotSet

        public static Boolean isNotSet​(String value)
        Utility function to check if a String is defined and not empty
        Parameters:
        value - String
        Returns:
        boolean
      • isSet

        public static Boolean isSet​(String value)
        Utility function to check if a String is defined and not empty
        Parameters:
        value - String
        Returns:
        boolean
      • isNotSet

        public static Boolean isNotSet​(File value)
        Utility function to check if File is defined and not empty
        Parameters:
        value - File
        Returns:
        boolean