|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.util.ErasureUtils
public class ErasureUtils
Class to gather unsafe operations into one place.
Method Summary | ||
---|---|---|
static
|
mkT2DArray(java.lang.Class<?> klass,
int[] dim)
|
|
static
|
mkTArray(java.lang.Class<?> klass,
int size)
Makes an array based on klass, but casts it to be of type T[]. |
|
static void |
noop(java.lang.Object o)
Does nothing, occasionally used to make Java happy that a value is used |
|
static
|
sortedIfPossible(java.util.Collection<T> collection)
|
|
static
|
uncheckedCast(java.lang.Object o)
Casts an Object to a T |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> T uncheckedCast(java.lang.Object o)
T
- public static void noop(java.lang.Object o)
public static <T> T[] mkTArray(java.lang.Class<?> klass, int size)
T
- public static <T> T[][] mkT2DArray(java.lang.Class<?> klass, int[] dim)
public static <T> java.util.List<T> sortedIfPossible(java.util.Collection<T> collection)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |