public class SetComplexData extends ComplexData
ComplexData that handles maps.
All data structures that the implementation returns are unmodifiable
ComplexData| Constructor and Description |
|---|
SetComplexData(int count) |
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
getDynamicList()
Returns the aggregate data in a
List form. |
Set<Object> |
getDynamicSet()
Returns the aggregate data in a
Set form. |
boolean |
isSet()
Returns true if the underlying data structure is a
Set
Does not mean that calling ComplexData.getDynamicSet() would not throw an exception. |
void |
storeObject(Object value)
Store an
Object value in the underlying data structure. |
getDynamicMap, isList, isMap, store, store, store, storepublic void storeObject(Object value)
ComplexDataObject value in the underlying data structure. This method should be used when nesting one instance of
ComplexData inside anotherstoreObject in class ComplexDatavalue - the value to storepublic Set<Object> getDynamicSet()
ComplexDataSet form. If the underlying implementation could not convert the data structure
to a Set then an UnsupportedOperationException would be thrown.getDynamicSet in class ComplexDataSet of Object valuespublic List<Object> getDynamicList()
ComplexDataList form. If the underlying implementation could not convert the data structure
to a List then an UnsupportedOperationException would be thrown.getDynamicList in class ComplexDataList of Object valuespublic boolean isSet()
ComplexDataSet
Does not mean that calling ComplexData.getDynamicSet() would not throw an exception. Implementations might decide to return
a representation of the data as a set, even if the underlying data structure is not a set.
isSet in class ComplexDataSetCopyright © 2025 lettuce.io. All rights reserved.