Class Types2

java.lang.Object
org.jclouds.reflect.Types2

@Beta public class Types2 extends Object
Since:
1.7
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Types2

      public Types2()
  • Method Details

    • 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 instanceof TypeVariable