Class VelocityAid


  • public class VelocityAid
    extends Object
    Author:
    Jorge Campins
    • Constructor Detail

      • VelocityAid

        public VelocityAid()
    • Method Detail

      • TRUE

        public static Boolean TRUE()
      • FALSE

        public static Boolean FALSE()
      • bs

        public static char bs()
      • ht

        public static char ht()
      • lf

        public static char lf()
      • vt

        public static char vt()
      • ff

        public static char ff()
      • cr

        public static char cr()
      • lcb

        public static char lcb()
      • rcb

        public static char rcb()
      • lrb

        public static char lrb()
      • rrb

        public static char rrb()
      • lsb

        public static char lsb()
      • rsb

        public static char rsb()
      • bsl

        public static char bsl()
      • spc

        public static char spc()
      • sqm

        public static char sqm()
      • dqm

        public static char dqm()
      • dot

        public static char dot()
      • com

        public static char com()
      • und

        public static char und()
      • ast

        public static char ast()
      • EOL

        public static String EOL()
      • TAB

        public static String TAB()
      • EMPTY

        public static String EMPTY()
      • BS

        public static String BS()
      • HT

        public static String HT()
      • LF

        public static String LF()
      • VT

        public static String VT()
      • FF

        public static String FF()
      • CR

        public static String CR()
      • LCB

        public static String LCB()
      • RCB

        public static String RCB()
      • LRB

        public static String LRB()
      • RRB

        public static String RRB()
      • LSB

        public static String LSB()
      • RSB

        public static String RSB()
      • BSL

        public static String BSL()
      • SPC

        public static String SPC()
      • SQM

        public static String SQM()
      • DQM

        public static String DQM()
      • DOT

        public static String DOT()
      • COM

        public static String COM()
      • UND

        public static String UND()
      • AST

        public static String AST()
      • values

        public static Object values​(Class<?> clazz)
      • getNewStack

        public static Stack getNewStack()
        Returns:
        a new instance of Stack
      • getNewArrayList

        public static ArrayList getNewArrayList()
        Returns:
        a new instance of ArrayList
      • getNewLinkedHashMap

        public static LinkedHashMap getNewLinkedHashMap()
        Returns:
        a new instance of LinkedHashMap
      • getNewLinkedHashSet

        public static LinkedHashSet getNewLinkedHashSet()
        Returns:
        a new instance of TreeSet
      • getNewTreeMap

        public static TreeMap getNewTreeMap()
        Returns:
        a new instance of TreeMap
      • getNewTreeSet

        public static TreeSet getNewTreeSet()
        Returns:
        a new instance of TreeSet
      • getNewArray

        public static Object[] getNewArray​(Map map)
      • toStringArray

        public static String[] toStringArray​(Object... objects)
      • toArrayString

        public static String toArrayString​(Object... objects)
      • coalesce

        public static Object coalesce​(Object... objects)
        Parameters:
        objects - objects to test
        Returns:
        the first non-null parameter
      • nvl

        public static Object nvl​(Object... objects)
        Parameters:
        objects - objects to test
        Returns:
        the first non-null/non-blank parameter
      • array

        public static String[] array​(String... string)
      • intArray

        public static int[] intArray​(int... i)
      • intArrayFor

        public static int[] intArrayFor​(int start,
                                        int stop,
                                        int step)
      • intArrayForString

        public static String intArrayForString​(int start,
                                               int stop,
                                               int step,
                                               String separator)
      • javadocLines

        public static List<String> javadocLines​(String string,
                                                int max)
      • split

        public static List<String> split​(String string,
                                         int max,
                                         String separator,
                                         boolean separatorLine)
      • split

        public static List<String> split​(String string,
                                         int max,
                                         String separator,
                                         boolean separatorLine,
                                         String prefix)
        split a text into a list of lines.
        Parameters:
        string - the text to split.
        max - the maximum line length.
        separator - the paragraph separator string.
        separatorLine - if true, the paragraph separator is added as a line between paragraphs.
        prefix - the new line prefix
        Returns:
        the list of split.
      • sortedPropertyNames

        public static String[] sortedPropertyNames​(Properties properties)