Class ImmutableEnvelop<T>
- java.lang.Object
- 
- org.pepstock.charba.client.commons.ImmutableEnvelop<T>
 
- 
- Type Parameters:
- T- type of envelop content.
 - All Implemented Interfaces:
- Envelop
 - Direct Known Subclasses:
- AnnotationEnvelop,- BaseEnvelop,- CallbacksEnvelop,- ConfigurationEnvelop,- DataEnvelop,- DataLabelsEnvelop,- ItemsEnvelop,- LabelsEnvelop,- OptionsEnvelop
 
 public abstract class ImmutableEnvelop<T> extends Object implements Envelop This object is a container of hidden object which can set by constructor and immutable afterwards.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedImmutableEnvelop(T content)Create an envelop with the content passed as argument.protectedImmutableEnvelop(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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetContent()Returns the content of envelop.booleanhasContent()Returnstrueif the content of envelop is notnull.booleanisNullable()Returnstrueif the content of envelop can benull.
 
- 
- 
- 
Constructor Detail- 
ImmutableEnvelopprotected ImmutableEnvelop(T content) Create an envelop with the content passed as argument.- Parameters:
- content- content to set as initial value
 
 - 
ImmutableEnvelopprotected ImmutableEnvelop(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 value
- nullable- if- true, the content can be- null
 
 
- 
 - 
Method Detail- 
getContentpublic final T getContent() Returns the content of envelop.- Returns:
- the content of envelop
 
 - 
hasContentpublic final boolean hasContent() Description copied from interface:EnvelopReturnstrueif the content of envelop is notnull.- Specified by:
- hasContentin interface- Envelop
- Returns:
- trueif the content of envelop is not- null
 
 - 
isNullablepublic final boolean isNullable() Description copied from interface:EnvelopReturnstrueif the content of envelop can benull.- Specified by:
- isNullablein interface- Envelop
- Returns:
- trueif the content of envelop can be- null
 
 
- 
 
-