Class ToXContent.MapParams
- java.lang.Object
-
- org.elasticsearch.common.xcontent.ToXContent.MapParams
-
- All Implemented Interfaces:
ToXContent.Params
- Direct Known Subclasses:
ToXContent.DelegatingMapParams
- Enclosing interface:
- ToXContent
public static class ToXContent.MapParams extends java.lang.Object implements ToXContent.Params
-
-
Constructor Summary
Constructors Constructor Description MapParams(java.util.Map<java.lang.String,java.lang.String> params)
-
Method Summary
Modifier and Type Method 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)
-
-
-
Method Detail
-
param
public java.lang.String param(java.lang.String key)
- Specified by:
param
in interfaceToXContent.Params
-
param
public java.lang.String param(java.lang.String key, java.lang.String defaultValue)
- Specified by:
param
in interfaceToXContent.Params
-
paramAsBoolean
public boolean paramAsBoolean(java.lang.String key, boolean defaultValue)
- Specified by:
paramAsBoolean
in interfaceToXContent.Params
-
paramAsBoolean
public java.lang.Boolean paramAsBoolean(java.lang.String key, java.lang.Boolean defaultValue)
- Specified by:
paramAsBoolean
in interfaceToXContent.Params
-
-