次の方法で共有


NumberInRangeFilter Class

public final class NumberInRangeFilter
extends Filter

NumberInRange Filter.

Constructor Summary

Constructor Description
NumberInRangeFilter()

Creates an instance of NumberInRangeFilter class.

Method Summary

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

Reads an instance of NumberInRangeFilter 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.

List<List<Double>> values()

Get the values property: The set of filter values.

NumberInRangeFilter withKey(String key)

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

NumberInRangeFilter withValues(List<List<Double>> values)

Set the values property: The set of filter values.

Methods inherited from Filter

Methods inherited from java.lang.Object

Constructor Details

NumberInRangeFilter

public NumberInRangeFilter()

Creates an instance of NumberInRangeFilter class.

Method Details

fromJson

public static NumberInRangeFilter fromJson(JsonReader jsonReader)

Reads an instance of NumberInRangeFilter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NumberInRangeFilter 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 NumberInRangeFilter.

operatorType

public FilterOperatorType operatorType()

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

Overrides:

NumberInRangeFilter.operatorType()

Returns:

the operatorType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

NumberInRangeFilter.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

NumberInRangeFilter.validate()

values

public List<List<Double>> values()

Get the values property: The set of filter values.

Returns:

the values value.

withKey

public NumberInRangeFilter withKey(String key)

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

Overrides:

NumberInRangeFilter.withKey(String key)

Parameters:

key

withValues

public NumberInRangeFilter withValues(List<List<Double>> values)

Set the values property: The set of filter values.

Parameters:

values - the values value to set.

Returns:

the NumberInRangeFilter object itself.

Applies to