T - the type parameterpublic class RestfulResourceUpdater<T> extends Object
| Constructor and Description |
|---|
RestfulResourceUpdater(String restfulResourceUrl,
com.fasterxml.jackson.core.type.TypeReference<T> type)
Instantiates a new Restful resource updater.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCachedJsonString()
Gets cached json string.
|
T |
getCachedResource()
Gets cached resource.
|
String |
getRestfulResourceUrl()
Gets restful resource url.
|
com.fasterxml.jackson.core.type.TypeReference<T> |
getType()
Gets type.
|
Optional<T> |
updateResource()
Update resource optional.
|
void |
updateResource(java.util.function.Consumer<T> updateConsumer)
Update resource.
|
public void updateResource(java.util.function.Consumer<T> updateConsumer)
updateConsumer - the update consumerpublic String getRestfulResourceUrl()
public com.fasterxml.jackson.core.type.TypeReference<T> getType()
public String getCachedJsonString()
public T getCachedResource()
Copyright © 2018. All rights reserved.