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