| Constructor and Description |
|---|
Toxic(HttpClient httpClient,
String path,
com.google.gson.JsonObject json) |
Toxic(HttpClient httpClient,
String toxicListPath,
String name,
ToxicDirection stream) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createToxic(String toxicListPath) |
protected abstract com.google.gson.JsonObject |
getAttributes() |
String |
getName() |
ToxicDirection |
getStream() |
float |
getToxicity() |
protected abstract ToxicType |
getType() |
protected void |
postAttribute(String name,
long value) |
void |
remove() |
protected abstract void |
setAttributes(com.google.gson.JsonObject attributes) |
void |
setToxicity(float toxicity) |
public Toxic(HttpClient httpClient, String toxicListPath, String name, ToxicDirection stream)
public Toxic(HttpClient httpClient, String path, com.google.gson.JsonObject json)
protected abstract void setAttributes(com.google.gson.JsonObject attributes)
protected abstract com.google.gson.JsonObject getAttributes()
protected abstract ToxicType getType()
protected void createToxic(String toxicListPath) throws IOException
IOExceptionprotected void postAttribute(String name, long value) throws IOException
IOExceptionpublic void setToxicity(float toxicity)
throws IOException
IOExceptionpublic String getName()
public ToxicDirection getStream()
public float getToxicity()
public void remove()
throws IOException
IOExceptionCopyright © 2018. All rights reserved.