T - Can be of any class supported by Variant, used for direct conversion in getValue, etc.@ProviderType public final class CompositeVariant<T> extends Object
| Constructor and Description |
|---|
CompositeVariant(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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(Object val) |
Class<T> |
getSingularType() |
T |
getValue() |
<U> U |
getValueAs(Class<U> otherType) |
List<T> |
getValues() |
<U> List<U> |
getValuesAs(Class<U> otherType) |
boolean |
isArray() |
boolean |
isEmpty() |
Object |
toPropertyValue() |
String |
toString() |
public CompositeVariant(T initial)
initial - Copyright © 2013–2020 Adobe. All rights reserved.