public interface Envelop
| Modifier and Type | Method and Description |
|---|---|
static <T extends Envelop> |
checkAndGetIfValid(T envelop)
Checks if envelop passed as argument is not
null and its content is not null as well.If not, throw a IllegalArgumentException. |
static void |
checkIfValid(Envelop envelop)
Checks if envelop passed as argument is not
null and its content is not null as well.If not, throw a IllegalArgumentException. |
boolean |
hasContent()
Returns
true if the content of envelop is not null. |
boolean |
isNullable()
Returns
true if the content of envelop can be null. |
static boolean |
isValid(Envelop envelop)
Returns
true if envelop passed as argument is not null and its content is not null as well. |
static boolean isValid(Envelop envelop)
true if envelop passed as argument is not null and its content is not null as well.envelop - envelop to be checkedtrue if envelop passed as argument is not null and its content is not null as well.static void checkIfValid(Envelop envelop)
null and its content is not null as well.IllegalArgumentException.envelop - envelop to be checkedstatic <T extends Envelop> T checkAndGetIfValid(T envelop)
null and its content is not null as well.IllegalArgumentException.T - type of envelopenvelop - key to be checkedboolean hasContent()
true if the content of envelop is not null.true if the content of envelop is not nullboolean isNullable()
true if the content of envelop can be null.true if the content of envelop can be null