public static class ToXContent.MapParams extends java.lang.Object implements ToXContent.Params
Constructor and Description |
---|
MapParams(java.util.Map<java.lang.String,java.lang.String> params) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
param(java.lang.String key) |
java.lang.String |
param(java.lang.String key,
java.lang.String defaultValue) |
boolean |
paramAsBoolean(java.lang.String key,
boolean defaultValue) |
java.lang.Boolean |
paramAsBoolean(java.lang.String key,
java.lang.Boolean defaultValue) |
public MapParams(java.util.Map<java.lang.String,java.lang.String> params)
public java.lang.String param(java.lang.String key)
param
in interface ToXContent.Params
public java.lang.String param(java.lang.String key, java.lang.String defaultValue)
param
in interface ToXContent.Params
public boolean paramAsBoolean(java.lang.String key, boolean defaultValue)
paramAsBoolean
in interface ToXContent.Params
public java.lang.Boolean paramAsBoolean(java.lang.String key, java.lang.Boolean defaultValue)
paramAsBoolean
in interface ToXContent.Params