public static final class DefaultAnnotations.Builder extends Object
| Modifier and Type | Method and Description | 
|---|---|
DefaultAnnotations | 
build()
Returns immutable annotations built from the accrued key/values pairs. 
 | 
DefaultAnnotations | 
buildCompressed()
Returns immutable annotations built from the accrued key/values
 pairs after compressing them to eliminate removed annotation tombstones. 
 | 
DefaultAnnotations.Builder | 
putAll(Annotations base)
Adds all specified annotation. 
 | 
DefaultAnnotations.Builder | 
putAll(Map<String,String> entries)
Adds all entries in specified map. 
 | 
DefaultAnnotations.Builder | 
remove(String key)
Adds the specified annotation. 
 | 
DefaultAnnotations.Builder | 
set(String key,
   String value)
Adds the specified annotation. 
 | 
public DefaultAnnotations.Builder putAll(Annotations base)
base - annotationspublic DefaultAnnotations.Builder putAll(Map<String,String> entries)
entries - annotation key and value entriespublic DefaultAnnotations.Builder set(String key, String value)
key - annotation keyvalue - annotation valuepublic DefaultAnnotations.Builder remove(String key)
key - annotation keypublic DefaultAnnotations build()
public DefaultAnnotations buildCompressed()