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, convertObject
public 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 retrieveCustomCollection
ParameterNotAvailableException
public CustomCollection get(int key) throws IndexNotAvailableException
key
- object position to retrieveCustomCollection
IndexNotAvailableException
public java.util.List<CustomCollection> getList(java.lang.String key) throws ParameterNotAvailableException, IllegalMethodException
key
- key for retrievalCustomCollection
listParameterNotAvailableException
IllegalMethodException
public java.lang.String getValue(java.lang.String key) throws ParameterNotAvailableException
key
- value keyString
ParameterNotAvailableException
public 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 convertCustomCollection
Copyright © 2022 IBM Cloud. All rights reserved.