Package com.courier.models.audiences
Interface FilterConfig.Visitor
-
- All Implemented Interfaces:
public interface FilterConfig.Visitor<T extends Object>An interface that defines how to map each variant of FilterConfig to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitSingle(SingleFilterConfig single)A single filter to use for filtering abstract TvisitNested(NestedFilterConfig nested)The operator to use for filtering Tunknown(JsonValue json)Maps an unknown variant of FilterConfig to a value of type T. -
-
Method Detail
-
visitSingle
abstract T visitSingle(SingleFilterConfig single)
A single filter to use for filtering
-
visitNested
abstract T visitNested(NestedFilterConfig nested)
The operator to use for filtering
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of FilterConfig to a value of type T.
An instance of FilterConfig can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-