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,PluginsEnvelop
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 protectedBaseEnvelop()Create an envelop with anullcontent.protectedBaseEnvelop(boolean nullable)Create an envelop with anullcontent and a flag to set if the content can be nullable.protectedBaseEnvelop(T content)Create an envelop with the content passed as argument.protectedBaseEnvelop(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 voidsetContent(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 anullcontent.
-
BaseEnvelop
protected BaseEnvelop(boolean nullable)
Create an envelop with anullcontent 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
-
-