C# Class NCrontab.Advanced.Filters.SpecificFilter

Handles filtering for a specific value
Inheritance: ICronFilter, ITimeFilter
显示文件 Open project: jcoutch/NCrontab-Advanced Class Usage Examples

Public Methods

Method Description
First ( ) : int
IsMatch ( System.DateTime value ) : bool

Checks if the value is accepted by the filter

Next ( int value ) : int?
SpecificFilter ( int specificValue, CrontabFieldKind kind ) : System

Constructs a new RangeFilter instance

ToString ( ) : string

Method Details

First() public method

public First ( ) : int
return int

IsMatch() public method

Checks if the value is accepted by the filter
public IsMatch ( System.DateTime value ) : bool
value System.DateTime The value to check
return bool

Next() public method

public Next ( int value ) : int?
value int
return int?

SpecificFilter() public method

Constructs a new RangeFilter instance
public SpecificFilter ( int specificValue, CrontabFieldKind kind ) : System
specificValue int The specific value you wish to match
kind CrontabFieldKind The crontab field kind to associate with this filter
return System

ToString() public method

public ToString ( ) : string
return string