Class ArrayFilter
- Namespace
- MassiveDotNet
- Assembly
- MassiveDotNet.dll
Factories for ArrayFilter<T>. They live on a non-generic class so the element type is inferred from the arguments.
public static class ArrayFilter
- Inheritance
-
ArrayFilter
- Inherited Members
Methods
AllOf<T>(params T[])
Results whose array contains every one of values: field.all_of=a,b.
public static ArrayFilter<T> AllOf<T>(params T[] values)
Parameters
valuesT[]One or more values. The array is held, not copied.
Returns
- ArrayFilter<T>
The filter.
Type Parameters
TThe array's element type.
Exceptions
- ArgumentNullException
valuesis null.- ArgumentException
valuesis empty or contains a null.
AnyOf<T>(params T[])
Results whose array contains any of values: field.any_of=a,b.
public static ArrayFilter<T> AnyOf<T>(params T[] values)
Parameters
valuesT[]One or more values. The array is held, not copied.
Returns
- ArrayFilter<T>
The filter.
Type Parameters
TThe array's element type.
Exceptions
- ArgumentNullException
valuesis null.- ArgumentException
valuesis empty or contains a null.
Contains<T>(T)
Results whose array contains value: field=value.
public static ArrayFilter<T> Contains<T>(T value)
Parameters
valueTThe value the array must contain.
Returns
- ArrayFilter<T>
The filter.
Type Parameters
TThe array's element type.
Exceptions
- ArgumentNullException
valueis null.