Class MiscImpl


  • public class MiscImpl
    extends Object
    • Constructor Detail

      • MiscImpl

        public MiscImpl()
    • Method Detail

      • replaceWhiteSpace

        public static String replaceWhiteSpace​(String s,
                                               String replacement)
      • getCallers

        public static StringBuilder getCallers​(int s,
                                               int n)
        Parameters:
        s - starting frames above invoker
        n - max number of callers to return
        Returns:
        x called by: y ...
      • getCaller

        public static String getCaller()
        Returns:
        the name of the caller in the stack
      • elide

        public static String elide​(String s,
                                   int n,
                                   boolean pad)