Home | History | Annotate | Download | only in collect

Lines Matching defs:Builder

40    * Returns a new builder. The generated builder is equivalent to the builder
41 * created by the {@link Builder} constructor.
43 public static <B> Builder<B> builder() {
44 return new Builder<B>();
48 * A builder for creating immutable class-to-instance maps. Example:
52 * new ImmutableClassToInstanceMap.Builder<Handler>()
59 * and build again. Thus each map generated by this builder will be a superset
64 public static final class Builder<B> {
65 private final ImmutableMap.Builder<Class<? extends B>, B> mapBuilder
66 = ImmutableMap.builder();
72 public <T extends B> Builder<B> put(Class<T> key, T value) {
85 public <T extends B> Builder<B> putAll(
102 * provided to this builder.
132 return new Builder<B>().putAll(map).build();