Package org.jclouds.reflect
Class Types2
- java.lang.Object
-
- org.jclouds.reflect.Types2
-
@Beta public class Types2 extends Object
- Since:
- 1.7
-
-
Constructor Summary
Constructors Constructor Description Types2()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
checkBound
public static <T> com.google.common.reflect.TypeToken<T> checkBound(com.google.common.reflect.TypeToken<T> type) throws IllegalStateException
Helpful when you are capturing the type inside a constructor.- Throws:
IllegalStateException
- if the type is an instanceofTypeVariable
-
-