Table of Contents

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

values T[]

One or more values. The array is held, not copied.

Returns

ArrayFilter<T>

The filter.

Type Parameters

T

The array's element type.

Exceptions

ArgumentNullException

values is null.

ArgumentException

values is 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

values T[]

One or more values. The array is held, not copied.

Returns

ArrayFilter<T>

The filter.

Type Parameters

T

The array's element type.

Exceptions

ArgumentNullException

values is null.

ArgumentException

values is empty or contains a null.

Contains<T>(T)

Results whose array contains value: field=value.

public static ArrayFilter<T> Contains<T>(T value)

Parameters

value T

The value the array must contain.

Returns

ArrayFilter<T>

The filter.

Type Parameters

T

The array's element type.

Exceptions

ArgumentNullException

value is null.