public static class Value.Builder
extends java.lang.Object
Constructor and Description |
---|
Value.Builder()
Instantiates a new builder.
|
Value.Builder(java.lang.String value,
java.lang.String type)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
Value.Builder |
addPattern(java.lang.String pattern)
Adds an pattern to patterns.
|
Value.Builder |
addSynonym(java.lang.String synonym)
Adds an synonym to synonyms.
|
Value |
build()
Builds a Value.
|
Value.Builder |
created(java.util.Date created)
Set the created.
|
Value.Builder |
metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
Set the metadata.
|
Value.Builder |
patterns(java.util.List<java.lang.String> patterns)
Set the patterns.
|
Value.Builder |
synonyms(java.util.List<java.lang.String> synonyms)
Set the synonyms.
|
Value.Builder |
type(java.lang.String type)
Set the type.
|
Value.Builder |
updated(java.util.Date updated)
Set the updated.
|
Value.Builder |
value(java.lang.String value)
Set the value.
|
public Value.Builder()
public Value.Builder(java.lang.String value, java.lang.String type)
value
- the valuetype
- the typepublic Value build()
public Value.Builder addSynonym(java.lang.String synonym)
synonym
- the new synonympublic Value.Builder addPattern(java.lang.String pattern)
pattern
- the new patternpublic Value.Builder value(java.lang.String value)
value
- the valuepublic Value.Builder metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
metadata
- the metadatapublic Value.Builder type(java.lang.String type)
type
- the typepublic Value.Builder synonyms(java.util.List<java.lang.String> synonyms)
synonyms
- the synonymspublic Value.Builder patterns(java.util.List<java.lang.String> patterns)
patterns
- the patternspublic Value.Builder created(java.util.Date created)
created
- the createdpublic Value.Builder updated(java.util.Date updated)
updated
- the updated