- java.lang.Object
-
- dagger.internal.SetBuilder<T>
-
public final class SetBuilder<T> extends java.lang.ObjectA fluent builder class that returns aSet. Used in component implementations where a set must be created in one fluent statement for inlined request fulfillments.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SetBuilder<T>add(T t)SetBuilder<T>addAll(java.util.Collection<? extends T> collection)java.util.Set<T>build()static <T> SetBuilder<T>newSetBuilder(int estimatedSize)estimatedSizeis the number of bindings which contribute to the set.
-
-
-
Method Detail
-
newSetBuilder
public static <T> SetBuilder<T> newSetBuilder(int estimatedSize)
estimatedSizeis the number of bindings which contribute to the set. They may each provide[0..n)instances to the set. Because the final size is unknown,contributionsare collected in a list and only hashed inbuild().
-
add
public SetBuilder<T> add(T t)
-
addAll
public SetBuilder<T> addAll(java.util.Collection<? extends T> collection)
-
build
public java.util.Set<T> build()
-
-