Class XDebug


  • public final class XDebug
    extends Object
    This is a helper class merely for debugging purposes. None of its members should be used for productive code.
    • Constructor Detail

      • XDebug

        public XDebug()
    • Method Detail

      • formatCommonTime

        public static String formatCommonTime​(Date timestamp)
      • formatNanoTime

        public static String formatNanoTime​(long timestamp)
      • println

        public static final void println​(String s)
      • print

        public static final void print​(String s)
      • println

        public static final void println​(String s,
                                         int stackTraceCut)
      • print

        public static final void print​(String s,
                                       int stackTraceCut)
      • printTime

        public static <T> T printTime​(Supplier<? extends T> logic)
      • printTime

        public static <T> T printTime​(Supplier<? extends T> logic,
                                      String name)
      • printTime

        public static <T> T printTime​(Supplier<? extends T> logic,
                                      int stackTraceDepth)
      • printTime

        public static <T> T printTime​(Supplier<? extends T> logic,
                                      int stackTraceDepthStart,
                                      int stackTraceDepth)
      • printTime

        public static <T> T printTime​(Supplier<? extends T> logic,
                                      String name,
                                      int stackTraceDepth)
      • printTime

        public static <T> T printTime​(Supplier<? extends T> logic,
                                      String name,
                                      int stackTraceDepthStart,
                                      int stackTraceDepth)
      • internalPrintTime

        public static <T> T internalPrintTime​(Supplier<? extends T> logic,
                                              String name,
                                              int stackTraceCallLevel,
                                              int stackTraceDepthStart,
                                              int stackTraceDepth)
      • printTime

        public static void printTime​(Runnable logic)
      • printTime

        public static void printTime​(Runnable logic,
                                     String name)
      • printTime

        public static void printTime​(Runnable logic,
                                     int stackTraceDepth)
      • printTime

        public static void printTime​(Runnable logic,
                                     int stackTraceDepthStart,
                                     int stackTraceDepth)
      • printTime

        public static void printTime​(Runnable logic,
                                     String name,
                                     int stackTraceDepth)
      • printTime

        public static void printTime​(Runnable logic,
                                     String name,
                                     int stackTraceDepthStart,
                                     int stackTraceDepth)
      • deleteAllFiles

        public static final void deleteAllFiles​(Path directory,
                                                boolean output)
      • copyDirectByteBufferRange

        public static byte[] copyDirectByteBufferRange​(ByteBuffer bb,
                                                       int offset,
                                                       int length)
      • copyDirectByteBuffer

        public static byte[] copyDirectByteBuffer​(ByteBuffer bb)
      • printDirectByteBuffer

        public static void printDirectByteBuffer​(ByteBuffer bb)
      • printInstanceSizeInfo

        public static void printInstanceSizeInfo​(Class<?> c)