Filter
public class Filter<K, V> where K : Reflectable, K : Comparable, K : Decodable, K : Encodable, K : Hashable, K : Identifiable, V : Reflectable, V : ReflectionDecodable, V : Comparable, V : CustomStringConvertible, V : Decodable, V : Encodable
represents a filter that takes a generic RESTElement
and Filterable
element to perform the operations: greater equal, less equal and exists, with the possibility to have more than one filter operation
-
specifies the filter operation with the possible options of less equal (
See more.lte
), greater equal (.gte
) and equal (.exists
)Declaration
Swift
public enum Operation<K, V>
-
init
to initialize aFilter
with theOperations
that define theFilterStrategy
Declaration
Swift
public init(operations: [Operation<K, V>])