Class AbstractDeskCmd<T>

    • Field Detail

      • SPLITTING_CHARS

        protected static final char[] SPLITTING_CHARS
    • Constructor Detail

      • AbstractDeskCmd

        public AbstractDeskCmd()
    • Method Detail

      • extractWordsWithMaxSize

        protected String extractWordsWithMaxSize​(String content,
                                                 int maxCharacters,
                                                 String postfix)
        Extracts content from a given string with a maximum length and returns it with full words and an optional ending.
        Parameters:
        content - the content to return the first words up to the maximum characters provided
        maxCharacters - the maximum number of characters to cut-off afterwards
        postfix - the optional string to be added to the end of the cut-off content
        Returns:
        extracted content
      • isSplittingChar

        protected boolean isSplittingChar​(char character)