T - Type that the builder will producepublic abstract class AbstractBuilder<T> extends Object
| Constructor and Description |
|---|
AbstractBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
build()
Builds the type
|
protected void |
checkNotBlank(String value,
String paramName)
Checks a value given for a parameter is not blank i.e.
|
protected void |
checkNotEmpty(String value,
String paramName)
Checks a value given for a parameter is not null/empty
|
protected void |
checkNotNull(String value,
String paramName)
Checks a value given for a parameter is not null
|
protected final void checkNotNull(String value, String paramName)
value - ValueparamName - Parameterprotected final void checkNotEmpty(String value, String paramName)
value - ValueparamName - Parameterprotected final void checkNotBlank(String value, String paramName)
value - ValueparamName - Parameterpublic abstract T build()
Copyright © 2012–2022. All rights reserved.