public class CustomCollection extends CustomDeserializer
Constructor and Description |
---|
CustomCollection() |
Modifier and Type | Method and Description |
---|---|
CustomCollection |
convertToCustomCollection(Object annotation)
Converts annotation to collection.
|
List<CustomCollection> |
convertToCustomCollectionList(List<Object> listAnnotation)
Retrieves collection list for annotation list.
|
CustomCollection |
get(int key)
Retrieves collection by position.
|
CustomCollection |
get(String key)
Retrieves collection by key.
|
List<CustomCollection> |
getList(String key)
Retrieve list of collections by key.
|
com.google.gson.JsonElement |
getObject()
Retrieves element within collection.
|
String |
getValue(String key)
Retrieves value for key.
|
void |
setObject(com.google.gson.JsonElement tempobj)
Sets element within collection.
|
convertJsonObject, convertObject
public com.google.gson.JsonElement getObject()
public void setObject(com.google.gson.JsonElement tempobj)
tempobj
- object to add to collectionpublic CustomCollection get(String key) throws ParameterNotAvailableException
key
- object key to retrieveCustomCollection
ParameterNotAvailableException
public CustomCollection get(int key) throws IndexNotAvailableException
key
- object position to retrieveCustomCollection
IndexNotAvailableException
public List<CustomCollection> getList(String key) throws ParameterNotAvailableException, IllegalMethodException
key
- key for retrievalCustomCollection
listParameterNotAvailableException
IllegalMethodException
public String getValue(String key) throws ParameterNotAvailableException
key
- value keyString
ParameterNotAvailableException
public List<CustomCollection> convertToCustomCollectionList(List<Object> listAnnotation)
listAnnotation
- annotation list for retrievalCustomCollection
listpublic CustomCollection convertToCustomCollection(Object annotation)
annotation
- annotation to convertCustomCollection
Copyright © 2021 IBM Cloud. All rights reserved.