public interface IsBuilder
| Modifier and Type | Method and Description |
|---|---|
static <T extends IsBuilder> |
checkAndGetIfValid(T builder)
Checks if the builder haven't been invoked yet to create the object.
If not, throw a IllegalArgumentException, otherwise it returns the builder. |
static void |
checkIfValid(IsBuilder builder)
Checks if the builder haven't been invoked yet to create the object.
If not, throw a IllegalArgumentException. |
boolean |
isBuilt()
Returns
true if new object has been already created by the builder. |
static boolean |
isValid(IsBuilder builder)
Returns
true if the builder haven't been invoked yet to create the object. |
static boolean isValid(IsBuilder builder)
true if the builder haven't been invoked yet to create the object.builder - builder instance to be checkedtrue if the builder haven't been invoked yet to create the objectstatic void checkIfValid(IsBuilder builder)
IllegalArgumentException.builder - builder instance to be checkedstatic <T extends IsBuilder> T checkAndGetIfValid(T builder)
IllegalArgumentException, otherwise it returns the builder.T - type of keybuilder - builder instance to be checkedboolean isBuilt()
true if new object has been already created by the builder.true if new object has been already created by the builder