Class IsGreaterThanOrEqualToValidator<T, TResult>
- Namespace
- LfrlAnvil.Validation.Validators
- Assembly
- LfrlAnvil.Validation.dll
Represents a generic object validator that expects objects to be greater than or equal to a specific value.
public sealed class IsGreaterThanOrEqualToValidator<T, TResult> : IValidator<T, TResult>
Type Parameters
T
Object type.
TResult
Result type.
- Inheritance
-
IsGreaterThanOrEqualToValidator<T, TResult>
- Implements
-
IValidator<T, TResult>
- Inherited Members
- Extension Methods
Constructors
IsGreaterThanOrEqualToValidator(T, IComparer<T>, TResult)
Creates a new IsGreaterThanOrEqualToValidator<T, TResult> instance.
public IsGreaterThanOrEqualToValidator(T determinant, IComparer<T> comparer, TResult failureResult)
Parameters
determinant
TValue to compare with.
comparer
IComparer<T>Value comparer.
failureResult
TResultFailure result.
Properties
Comparer
Value comparer.
public IComparer<T> Comparer { get; }
Property Value
- IComparer<T>
Determinant
Value to compare with.
public T Determinant { get; }
Property Value
- T
FailureResult
Failure result.
public TResult FailureResult { get; }
Property Value
- TResult
Methods
Validate(T)
Validates the provided obj
.
[Pure]
public Chain<TResult> Validate(T obj)
Parameters
obj
TObject to validate.
Returns
- Chain<TResult>
Result of
obj
validation.