T - the Domain type for the builded domains@NotThreadSafe public class DomainBuilder<T extends de.malkusch.whoisServerList.api.v1.model.domain.Domain> extends Object
Domain objects.| Constructor and Description |
|---|
DomainBuilder(de.malkusch.whoisServerList.api.v1.model.Source source,
Class<T> domainType)
Sets the object source.
|
| Modifier and Type | Method and Description |
|---|---|
T |
build()
Builds a new list object.
|
protected void |
complete(T domain)
Completes a created object.
|
protected void |
completeDomain(T domain)
Completes a builded domain object.
|
String |
getName()
Returns the domain name for the builded objects.
|
protected Class<? extends T> |
getObjectType()
Returns the class for the created objects.
|
void |
setName(String name)
Sets the domain name.
|
protected void completeDomain(T domain) throws WhoisServerListException, InterruptedException
domain - the domainWhoisServerListException - If building the object failedInterruptedException - If the thread was interruptedprotected final void complete(T domain) throws WhoisServerListException, InterruptedException
domain - the list object, not nullWhoisServerListException - If building the object failed.InterruptedException - If the thread was interruptedpublic final void setName(String name)
name - the domain namepublic final String getName()
protected final Class<? extends T> getObjectType()
public final T build()
throws WhoisServerListException,
InterruptedException
WhoisServerListException - If building the object failedInterruptedException - If the thread was interruptedCopyright © 2014. All Rights Reserved.