次の方法で共有


BoolEqualsFilter Class

public final class BoolEqualsFilter
extends Filter

BoolEquals Filter.

Constructor Summary

Constructor Description
BoolEqualsFilter()

Creates an instance of BoolEqualsFilter class.

Method Summary

Modifier and Type Method and Description
static BoolEqualsFilter fromJson(JsonReader jsonReader)

Reads an instance of BoolEqualsFilter from the JsonReader.

FilterOperatorType operatorType()

Get the operatorType property: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Boolean value()

Get the value property: The boolean filter value.

BoolEqualsFilter withKey(String key)

Set the key property: The field/property in the event based on which you want to filter.

BoolEqualsFilter withValue(Boolean value)

Set the value property: The boolean filter value.

Methods inherited from Filter

Methods inherited from java.lang.Object

Constructor Details

BoolEqualsFilter

public BoolEqualsFilter()

Creates an instance of BoolEqualsFilter class.

Method Details

fromJson

public static BoolEqualsFilter fromJson(JsonReader jsonReader)

Reads an instance of BoolEqualsFilter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BoolEqualsFilter if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the BoolEqualsFilter.

operatorType

public FilterOperatorType operatorType()

Get the operatorType property: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.

Overrides:

BoolEqualsFilter.operatorType()

Returns:

the operatorType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

BoolEqualsFilter.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

BoolEqualsFilter.validate()

value

public Boolean value()

Get the value property: The boolean filter value.

Returns:

the value value.

withKey

public BoolEqualsFilter withKey(String key)

Set the key property: The field/property in the event based on which you want to filter.

Overrides:

BoolEqualsFilter.withKey(String key)

Parameters:

key

withValue

public BoolEqualsFilter withValue(Boolean value)

Set the value property: The boolean filter value.

Parameters:

value - the value value to set.

Returns:

the BoolEqualsFilter object itself.

Applies to