Class CommandUtils


  • public class CommandUtils
    extends Object
    Contains various methods for helping with layout no commands
    • Constructor Detail

      • CommandUtils

        public CommandUtils()
    • Method Detail

      • trimToSize

        public static String trimToSize​(String message,
                                        int length)
        The message is either enlarged or trimmed to the given size.
        Parameters:
        message - - the message to be trimmed or enlarged
        length - - the length of the message text
        Returns:
        the optimized message