Package com.adobe.acs.commons.data
Class CompositeVariant<T>
java.lang.Object
com.adobe.acs.commons.data.CompositeVariant<T>
- Type Parameters:
T- Can be of any class supported by Variant, used for direct conversion in getValue, etc.
Represents a value which could be either a list of variants or a single variant. The idea is that this supports a
transition from a singular to a multi-value property for easier conversion.
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeVariant(T initial) Create a variant either as a preferred type (set value later with addValue) or with an initial value and the preferred type is assumed by the value provided. -
Method Summary
-
Constructor Details
-
CompositeVariant
Create a variant either as a preferred type (set value later with addValue) or with an initial value and the preferred type is assumed by the value provided.- Parameters:
initial-
-
-
Method Details