public static class Mention.Builder
extends java.lang.Object
Constructor and Description |
---|
Mention.Builder()
Instantiates a new builder.
|
Mention.Builder(java.lang.String entity,
java.util.List<java.lang.Long> location)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
Mention.Builder |
addLocation(java.lang.Long location)
Adds an location to location.
|
Mention |
build()
Builds a Mention.
|
Mention.Builder |
entity(java.lang.String entity)
Set the entity.
|
Mention.Builder |
location(java.util.List<java.lang.Long> location)
Set the location.
|
public Mention.Builder()
public Mention.Builder(java.lang.String entity, java.util.List<java.lang.Long> location)
entity
- the entitylocation
- the locationpublic Mention build()
public Mention.Builder addLocation(java.lang.Long location)
location
- the new locationpublic Mention.Builder entity(java.lang.String entity)
entity
- the entitypublic Mention.Builder location(java.util.List<java.lang.Long> location)
location
- the location