Class BaseEnvelop<T>
- java.lang.Object
-
- org.pepstock.charba.client.commons.ImmutableEnvelop<T>
-
- org.pepstock.charba.client.commons.BaseEnvelop<T>
-
- Type Parameters:
T
- type of envelop content.
- All Implemented Interfaces:
Envelop
- Direct Known Subclasses:
ChartEnvelop
public abstract class BaseEnvelop<T> extends ImmutableEnvelop<T>
This object is a container of hidden object.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseEnvelop()
Create an envelop with anull
content.protected
BaseEnvelop(boolean nullable)
Create an envelop with anull
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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setContent(T content)
Stores the content of envelop.-
Methods inherited from class org.pepstock.charba.client.commons.ImmutableEnvelop
getContent, hasContent, isNullable
-
-
-
-
Constructor Detail
-
BaseEnvelop
protected BaseEnvelop()
Create an envelop with anull
content.
-
BaseEnvelop
protected BaseEnvelop(boolean nullable)
Create an envelop with anull
content and a flag to set if the content can be nullable.- Parameters:
nullable
- iftrue
, the content can benull
-
BaseEnvelop
protected BaseEnvelop(T content)
Create an envelop with the content passed as argument.- Parameters:
content
- content to set as initial value
-
BaseEnvelop
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.- Parameters:
content
- content to set as initial valuenullable
- iftrue
, the content can benull
-
-
Method Detail
-
setContent
public final void setContent(T content)
Stores the content of envelop.- Parameters:
content
- the content of envelop to store
-
-