/** * Note that this ctor requires that you instantiate w/resolved generic * params. For example, via a subclass of a bound type, or natural * instantiation w/resolved type params. */ @SuppressWarnings("unchecked") protected Builder() { this.api = Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); init(); }
/** * Note that this ctor requires that you instantiate w/resolved generic * params. For example, via a subclass of a bound type, or natural * instantiation w/resolved type params. */ @SuppressWarnings("unchecked") protected Builder() { this.api = Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); init(); }
/** * Note that this ctor requires that you instantiate w/resolved generic * params. For example, via a subclass of a bound type, or natural * instantiation w/resolved type params. */ @SuppressWarnings("unchecked") protected Builder() { this.api = Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); init(); }
protected Builder(Class<A> api) { this.api = checkNotNull(api, "api"); init(); }
protected Builder(Class<A> api) { this.api = checkNotNull(api, "api"); init(); }
protected Builder(Class<A> api) { this.api = checkNotNull(api, "api"); init(); }
protected Builder(Class<A> api) { this.api = checkNotNull(api, "api"); init(); }
/** * Note that this ctor requires that you instantiate w/resolved generic * params. For example, via a subclass of a bound type, or natural * instantiation w/resolved type params. */ @SuppressWarnings("unchecked") protected Builder() { this.api = Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); init(); }
protected Builder(Class<A> api) { this.api = checkNotNull(api, "api"); init(); }
/** * Note that this ctor requires that you instantiate w/resolved generic * params. For example, via a subclass of a bound type, or natural * instantiation w/resolved type params. */ @SuppressWarnings("unchecked") protected Builder() { this.api = Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); init(); }
/** * Note that this ctor requires that you instantiate w/resolved generic * params. For example, via a subclass of a bound type, or natural * instantiation w/resolved type params. */ @SuppressWarnings("unchecked") protected Builder() { this.api = Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); init(); }
protected Builder(Class<A> api) { this.api = checkNotNull(api, "api"); init(); }