public abstract class HookSettings extends java.lang.Object implements ErrorsHolder
Modifier and Type | Method and Description |
---|---|
static HookSettings |
create(com.google.gson.JsonElement settings,
java.util.List<Error> errors)
Method used internally to create a HookSettings object and NOT
meant for client use.
|
static HookSettings |
of(com.google.gson.JsonElement settings)
Create a HookSettings instance from the passed JsonElement.
|
static HookSettings |
of(java.util.Map settings)
Create a HookSettings instance from the passed Map.
|
abstract com.google.gson.JsonElement |
settings() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
errors
public abstract com.google.gson.JsonElement settings()
public static HookSettings of(com.google.gson.JsonElement settings)
settings
- JsonElement representing HookSettings.public static HookSettings of(java.util.Map settings)
settings
- Map representing HookSettings.public static HookSettings create(com.google.gson.JsonElement settings, java.util.List<Error> errors)
settings
- possible JsonElement representing HookSettings.errors
- possible list of Error's.