Class Thing.Builder
java.lang.Object
net.ygbstudio.jbrave.core.domain.dto.result.thing.Thing.Builder
- Direct Known Subclasses:
ContactPoint.Builder,Organization.Builder,Person.Builder
- Enclosing class:
Thing
Builder for
Thing instances.-
Constructor Details
-
Builder
public Builder()Creates a new builder with all fields unset.
-
-
Method Details
-
type
Sets the thing type.- Parameters:
type- the thing type- Returns:
- this builder
-
name
Sets the thing name.- Parameters:
name- the thing name- Returns:
- this builder
-
url
Sets the thing URL.- Parameters:
url- the URL- Returns:
- this builder
-
thumbnail
Sets the thumbnail.- Parameters:
thumbnail- the thumbnail- Returns:
- this builder
-
build
Builds a newThingfrom the current builder state.- Returns:
- a new
Thinginstance
-