public abstract class InteractiveResource<T extends InteractiveResource<T>> extends Object implements IInteractiveUpdatable
InteractiveResource is the superclass of all classes representing resources
on the Interactive service.InteractiveControl,
InteractiveParticipant,
InteractiveGroup,
InteractiveScene| Modifier and Type | Field and Description |
|---|---|
protected com.google.gson.JsonElement |
meta
Json object holding the map of meta properties
|
| Constructor and Description |
|---|
InteractiveResource() |
| Modifier and Type | Method and Description |
|---|---|
T |
addMetaProperty(String key,
Object value)
Adds a meta property to the meta property map object.
|
com.google.gson.JsonObject |
getMeta()
Returns the Json object holding the map of meta properties.
|
protected abstract T |
getThis()
Returns
this as an instance of the specified generic. |
T |
setMeta(com.google.gson.JsonObject meta)
Sets the Json object holding the map of meta properties.
|
abstract boolean |
syncIfEqual(Collection<?> objects)
Iterates through a
Collection of Objects. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdateprotected com.google.gson.JsonElement meta
protected abstract T getThis()
this as an instance of the specified generic. Utilizes the
getThis
programming idiom.this as an object of type Tpublic abstract boolean syncIfEqual(Collection<?> objects)
Collection of Objects. If this is found to be in the
Collection then this has it's values updated.objects - A Collection of ObjectsCompletableFuture that when complete returns true if the
provided Collection contains thispublic com.google.gson.JsonObject getMeta()
public T setMeta(com.google.gson.JsonObject meta)
meta - Json object holding the map of meta propertiesthis for method chainingpublic T addMetaProperty(String key, Object value)
key - Meta property keyvalue - Meta property valuethis for method chainingCopyright © 2018. All rights reserved.