public static final class ImmutableContextSet.Builder extends Object
ImmutableContextSet.| Modifier and Type | Method and Description |
|---|---|
ImmutableContextSet.Builder |
add(Map.Entry<String,String> entry)
Adds a context to the set.
|
ImmutableContextSet.Builder |
add(String key,
String value)
Adds a context to the set.
|
ImmutableContextSet.Builder |
addAll(ContextSet contextSet)
Adds of of the contexts in another
ContextSet to the set. |
ImmutableContextSet.Builder |
addAll(Iterable<? extends Map.Entry<String,String>> iterable)
Adds the contexts contained in the given
Iterable to the set. |
ImmutableContextSet.Builder |
addAll(Map<String,String> map)
Adds the contexts contained in the given
Map to the set. |
ImmutableContextSet.Builder |
addAll(Multimap<String,String> multimap)
Adds the contexts contained in the given
Multimap to the set. |
ImmutableContextSet |
build()
Creates a
ImmutableContextSet from the values previously
added to the builder. |
@Nonnull public ImmutableContextSet.Builder add(@Nonnull String key, @Nonnull String value)
key - the key to addvalue - the value to addNullPointerException - if the key or value is nullMutableContextSet.add(String, String)@Nonnull public ImmutableContextSet.Builder add(@Nonnull Map.Entry<String,String> entry)
entry - the entry to addNullPointerException - if the entry is nullMutableContextSet.add(Map.Entry)@Nonnull public ImmutableContextSet.Builder addAll(@Nonnull Iterable<? extends Map.Entry<String,String>> iterable)
Iterable to the set.iterable - an iterable of key value context pairsNullPointerException - if iterable is nullMutableContextSet.addAll(Iterable)@Nonnull public ImmutableContextSet.Builder addAll(@Nonnull Map<String,String> map)
Map to the set.map - the map to add fromNullPointerException - if the map is nullMutableContextSet.addAll(Map)@Nonnull public ImmutableContextSet.Builder addAll(@Nonnull Multimap<String,String> multimap)
Multimap to the set.multimap - the multimap to add fromNullPointerException - if the map is nullMutableContextSet.addAll(Multimap)@Nonnull public ImmutableContextSet.Builder addAll(@Nonnull ContextSet contextSet)
ContextSet to the set.contextSet - the set to add fromNullPointerException - if the contextSet is nullMutableContextSet.addAll(ContextSet)@Nonnull public ImmutableContextSet build()
ImmutableContextSet from the values previously
added to the builder.ImmutableContextSet from the builderCopyright © 2018. All rights reserved.