Udostępnij za pośrednictwem


NumberLessThanFilter Class

public final class NumberLessThanFilter
extends Filter

NumberLessThan Filter.

Constructor Summary

Constructor Description
NumberLessThanFilter()

Creates an instance of NumberLessThanFilter class.

Method Summary

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

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

Double value()

Get the value property: The filter value.

NumberLessThanFilter withKey(String key)

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

NumberLessThanFilter withValue(Double value)

Set the value property: The filter value.

Methods inherited from Filter

Methods inherited from java.lang.Object

Constructor Details

NumberLessThanFilter

public NumberLessThanFilter()

Creates an instance of NumberLessThanFilter class.

Method Details

fromJson

public static NumberLessThanFilter fromJson(JsonReader jsonReader)

Reads an instance of NumberLessThanFilter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

operatorType

public FilterOperatorType operatorType()

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

Overrides:

NumberLessThanFilter.operatorType()

Returns:

the operatorType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

NumberLessThanFilter.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

NumberLessThanFilter.validate()

value

public Double value()

Get the value property: The filter value.

Returns:

the value value.

withKey

public NumberLessThanFilter withKey(String key)

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

Overrides:

NumberLessThanFilter.withKey(String key)

Parameters:

key

withValue

public NumberLessThanFilter withValue(Double value)

Set the value property: The filter value.

Parameters:

value - the value value to set.

Returns:

the NumberLessThanFilter object itself.

Applies to