|
|||||||||
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
|
mkTArray(Class<?> klass,
int size)
Makes an array based on klass, but casts it to be of type T[]. |
|
static void |
noop(Object o)
Does nothing, occasionally used to make Java happy that a value is used |
|
static
|
sortedIfPossible(Collection<T> collection)
|
|
static
|
uncheckedCast(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(Object o)
T
- o
-
public static void noop(Object o)
public static <T> T[] mkTArray(Class<?> klass, int size)
T
- klass
- size
-
public static <T> List<T> sortedIfPossible(Collection<T> collection)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |