@Beta public class Types2 extends Object
Constructor and Description |
---|
Types2() |
Modifier and Type | Method and Description |
---|---|
static <T> com.google.common.reflect.TypeToken<T> |
checkBound(com.google.common.reflect.TypeToken<T> type)
Helpful when you are capturing the type inside a constructor.
|
public static <T> com.google.common.reflect.TypeToken<T> checkBound(com.google.common.reflect.TypeToken<T> type) throws IllegalStateException
IllegalStateException
- if the type is an instanceof TypeVariable
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.