public class CmsADEConfigurationSequence extends java.lang.Object
Used for computing the configuration inheritance.
Modifier | Constructor and Description |
---|---|
|
CmsADEConfigurationSequence(java.util.List<CmsADEConfigDataInternal> configDatas)
Creates a new instance for the given list of configuration data, with the index pointing to the last element.
|
protected |
CmsADEConfigurationSequence(java.util.List<CmsADEConfigDataInternal> configDatas,
int index)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
CmsADEConfigDataInternal |
getConfig()
Gets the current configuration data.
|
com.google.common.base.Optional<CmsADEConfigurationSequence> |
getParent()
Returns a sequence which only differs from this instance in that its index is one less.
|
public CmsADEConfigurationSequence(java.util.List<CmsADEConfigDataInternal> configDatas)
configDatas
- the config data listprotected CmsADEConfigurationSequence(java.util.List<CmsADEConfigDataInternal> configDatas, int index)
configDatas
- the configuration data listindex
- the index into the listpublic CmsADEConfigDataInternal getConfig()
public com.google.common.base.Optional<CmsADEConfigurationSequence> getParent()
However, if the index of this instance is already 0, Optional.absent will be returned.