Home | History | Annotate | Download | only in reflect

Lines Matching defs:Builder

41   /** Returns a new builder. */
42 public static <B> Builder<B> builder() {
43 return new Builder<B>();
47 * A builder for creating immutable type-to-instance maps. Example:
51 * ImmutableTypeToInstanceMap.<Handler<?>>builder()
57 * and build again. Thus each map generated by this builder will be a superset
63 public static final class Builder<B> {
64 private final ImmutableMap.Builder<TypeToken<? extends B>, B> mapBuilder
65 = ImmutableMap.builder();
67 private Builder() {}
73 public <T extends B> Builder<B> put(Class<T> key, T value) {
82 public <T extends B> Builder<B> put(TypeToken<T> key, T value) {
89 * provided to this builder.