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