public class ArrayJsonType extends AbstractJsonType implements MergableObject<ArrayJsonType>
| Modifier and Type | Field and Description |
|---|---|
static int |
INIT_SIZE |
| Constructor and Description |
|---|
ArrayJsonType() |
ArrayJsonType(PrimitiveJsonTypesResolver primitiveJsonTypesResolver,
Collection<?> elements,
PathMetadata currentPathMetadata,
String propertyKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(int index,
AbstractJsonType elementToAdd,
PathMetadata currentPathMetadata) |
void |
addElement(PropertyArrayHelper propertyArrayHelper,
AbstractJsonType elementToAdd,
PathMetadata currentPathMetadata) |
List<AbstractJsonType> |
convertToListWithoutRealNull() |
static ArrayJsonType |
createOrGetNextDimensionOfArray(ArrayJsonType currentArray,
List<Integer> indexes,
int indexToTest,
PathMetadata currentPathMetadata) |
boolean |
existElementByGivenIndex(int index) |
AbstractJsonType |
getElement(int index) |
AbstractJsonType |
getElementByGivenDimIndexes(PathMetadata currentPathMetaData) |
void |
merge(ArrayJsonType mergeWith,
PathMetadata currentPathMetadata) |
String |
toStringJson()
This one simply concatenate to rest of json.
|
toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitmergeObjectIfPossiblepublic static final int INIT_SIZE
public ArrayJsonType()
public ArrayJsonType(PrimitiveJsonTypesResolver primitiveJsonTypesResolver, Collection<?> elements, PathMetadata currentPathMetadata, String propertyKey)
public static ArrayJsonType createOrGetNextDimensionOfArray(ArrayJsonType currentArray, List<Integer> indexes, int indexToTest, PathMetadata currentPathMetadata)
public void addElement(int index,
AbstractJsonType elementToAdd,
PathMetadata currentPathMetadata)
public void addElement(PropertyArrayHelper propertyArrayHelper, AbstractJsonType elementToAdd, PathMetadata currentPathMetadata)
public AbstractJsonType getElementByGivenDimIndexes(PathMetadata currentPathMetaData)
public boolean existElementByGivenIndex(int index)
public AbstractJsonType getElement(int index)
public String toStringJson()
AbstractJsonTypetoStringJson in class AbstractJsonTypepublic List<AbstractJsonType> convertToListWithoutRealNull()
public void merge(ArrayJsonType mergeWith, PathMetadata currentPathMetadata)
merge in interface MergableObject<ArrayJsonType>Copyright © 2020. All rights reserved.