Package org.apache.uima.internal.util
Class MiscImpl
- java.lang.Object
-
- org.apache.uima.internal.util.MiscImpl
-
public class MiscImpl extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MiscImpl()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
elide(java.lang.String s, int n)
static java.lang.String
elide(java.lang.String s, int n, boolean pad)
static java.lang.String
getCaller()
static java.lang.StringBuilder
getCallers(int s, int n)
static java.lang.String
replaceWhiteSpace(java.lang.String s, java.lang.String replacement)
static void
timeLoops(java.lang.String title, int iterations, java.util.concurrent.Callable<java.lang.Object> r)
-
-
-
Field Detail
-
blanks
public static final java.lang.String blanks
- See Also:
- Constant Field Values
-
dots
public static final java.lang.String dots
- See Also:
- Constant Field Values
-
-
Method Detail
-
replaceWhiteSpace
public static java.lang.String replaceWhiteSpace(java.lang.String s, java.lang.String replacement)
-
getCallers
public static java.lang.StringBuilder getCallers(int s, int n)
- Parameters:
s
- starting frames above invokern
- max number of callers to return- Returns:
- x called by: y ...
-
getCaller
public static java.lang.String getCaller()
- Returns:
- the name of the caller in the stack
-
elide
public static java.lang.String elide(java.lang.String s, int n)
-
elide
public static java.lang.String elide(java.lang.String s, int n, boolean pad)
-
timeLoops
public static void timeLoops(java.lang.String title, int iterations, java.util.concurrent.Callable<java.lang.Object> r) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-