Class Types2


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

      • Types2

        public Types2()
    • 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 instanceof TypeVariable