T
- type of envelop content.public abstract class BaseEnvelop<T> extends ImmutableEnvelop<T>
Modifier | Constructor and Description |
---|---|
protected |
BaseEnvelop()
Create an envelop with a
null content. |
protected |
BaseEnvelop(boolean nullable)
Create an envelop with a
null content and a flag to set if the content can be nullable. |
protected |
BaseEnvelop(T content)
Create an envelop with the content passed as argument.
|
protected |
BaseEnvelop(T content,
boolean nullable)
Create an envelop with the content passed as argument and a flag to set if the content can be nullable.
|
Modifier and Type | Method and Description |
---|---|
void |
setContent(T content)
Stores the content of envelop.
|
getContent, hasContent, isNullable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkAndGetIfValid, checkIfValid, isValid
protected BaseEnvelop()
null
content.protected BaseEnvelop(boolean nullable)
null
content and a flag to set if the content can be nullable.nullable
- if true
, the content can be null
protected BaseEnvelop(T content)
content
- content to set as initial valueprotected BaseEnvelop(T content, boolean nullable)
content
- content to set as initial valuenullable
- if true
, the content can be null
public final void setContent(T content)
content
- the content of envelop to store