C# Class Itenso.TimePeriod.TimeInterval

Inheritance: ITimeInterval
Exibir arquivo Open project: jwg4/date-difference Class Usage Examples

Public Properties

Property Type Description
Anytime TimeInterval

Public Methods

Method Description
Copy ( ) : ITimeInterval
Copy ( System.TimeSpan offset ) : ITimeInterval
Equals ( object obj ) : bool
ExpandEndTo ( System.DateTime moment ) : void
ExpandStartTo ( System.DateTime moment ) : void
ExpandTo ( System.DateTime moment ) : void
ExpandTo ( ITimePeriod period ) : void
GetDescription ( ITimeFormatter formatter = null ) : string
GetHashCode ( ) : int
GetIntersection ( ITimePeriod period ) : ITimeInterval
GetRelation ( ITimePeriod test ) : PeriodRelation
HasInside ( System.DateTime test ) : bool
HasInside ( ITimePeriod test ) : bool
IntersectsWith ( ITimePeriod test ) : bool
IsSamePeriod ( ITimePeriod test ) : bool
Move ( System.TimeSpan offset ) : void
OverlapsWith ( ITimePeriod test ) : bool
Reset ( ) : void
Setup ( System.DateTime newStartInterval, System.DateTime newEndInterval ) : void
ShrinkEndTo ( System.DateTime moment ) : void
ShrinkStartTo ( System.DateTime moment ) : void
ShrinkTo ( ITimePeriod period ) : void
TimeInterval ( ) : System
TimeInterval ( System.DateTime startInterval, System.DateTime endInterval, IntervalEdge startEdge = IntervalEdge.Closed, IntervalEdge endEdge = IntervalEdge.Closed, bool isIntervalEnabled = true, bool isReadOnly = false ) : System
TimeInterval ( System.DateTime moment, IntervalEdge startEdge = IntervalEdge.Closed, IntervalEdge endEdge = IntervalEdge.Closed, bool isIntervalEnabled = true, bool isReadOnly = false ) : System
TimeInterval ( ITimePeriod copy ) : System
ToString ( ) : string

Protected Methods

Method Description
CheckModification ( ) : void
ComputeHashCode ( ) : int
Format ( ITimeFormatter formatter ) : string
IsEqual ( object obj ) : bool
TimeInterval ( ITimePeriod copy, bool isReadOnly ) : System

Private Methods

Method Description
HasSameData ( TimeInterval comp ) : bool

Method Details

CheckModification() protected method

protected CheckModification ( ) : void
return void

ComputeHashCode() protected method

protected ComputeHashCode ( ) : int
return int

Copy() public method

public Copy ( ) : ITimeInterval
return ITimeInterval

Copy() public method

public Copy ( System.TimeSpan offset ) : ITimeInterval
offset System.TimeSpan
return ITimeInterval

Equals() public final method

public final Equals ( object obj ) : bool
obj object
return bool

ExpandEndTo() public method

public ExpandEndTo ( System.DateTime moment ) : void
moment System.DateTime
return void

ExpandStartTo() public method

public ExpandStartTo ( System.DateTime moment ) : void
moment System.DateTime
return void

ExpandTo() public method

public ExpandTo ( System.DateTime moment ) : void
moment System.DateTime
return void

ExpandTo() public method

public ExpandTo ( ITimePeriod period ) : void
period ITimePeriod
return void

Format() protected method

protected Format ( ITimeFormatter formatter ) : string
formatter ITimeFormatter
return string

GetDescription() public method

public GetDescription ( ITimeFormatter formatter = null ) : string
formatter ITimeFormatter
return string

GetHashCode() public final method

public final GetHashCode ( ) : int
return int

GetIntersection() public method

public GetIntersection ( ITimePeriod period ) : ITimeInterval
period ITimePeriod
return ITimeInterval

GetRelation() public method

public GetRelation ( ITimePeriod test ) : PeriodRelation
test ITimePeriod
return PeriodRelation

HasInside() public method

public HasInside ( System.DateTime test ) : bool
test System.DateTime
return bool

HasInside() public method

public HasInside ( ITimePeriod test ) : bool
test ITimePeriod
return bool

IntersectsWith() public method

public IntersectsWith ( ITimePeriod test ) : bool
test ITimePeriod
return bool

IsEqual() protected method

protected IsEqual ( object obj ) : bool
obj object
return bool

IsSamePeriod() public method

public IsSamePeriod ( ITimePeriod test ) : bool
test ITimePeriod
return bool

Move() public method

public Move ( System.TimeSpan offset ) : void
offset System.TimeSpan
return void

OverlapsWith() public method

public OverlapsWith ( ITimePeriod test ) : bool
test ITimePeriod
return bool

Reset() public method

public Reset ( ) : void
return void

Setup() public method

public Setup ( System.DateTime newStartInterval, System.DateTime newEndInterval ) : void
newStartInterval System.DateTime
newEndInterval System.DateTime
return void

ShrinkEndTo() public method

public ShrinkEndTo ( System.DateTime moment ) : void
moment System.DateTime
return void

ShrinkStartTo() public method

public ShrinkStartTo ( System.DateTime moment ) : void
moment System.DateTime
return void

ShrinkTo() public method

public ShrinkTo ( ITimePeriod period ) : void
period ITimePeriod
return void

TimeInterval() public method

public TimeInterval ( ) : System
return System

TimeInterval() public method

public TimeInterval ( System.DateTime startInterval, System.DateTime endInterval, IntervalEdge startEdge = IntervalEdge.Closed, IntervalEdge endEdge = IntervalEdge.Closed, bool isIntervalEnabled = true, bool isReadOnly = false ) : System
startInterval System.DateTime
endInterval System.DateTime
startEdge IntervalEdge
endEdge IntervalEdge
isIntervalEnabled bool
isReadOnly bool
return System

TimeInterval() public method

public TimeInterval ( System.DateTime moment, IntervalEdge startEdge = IntervalEdge.Closed, IntervalEdge endEdge = IntervalEdge.Closed, bool isIntervalEnabled = true, bool isReadOnly = false ) : System
moment System.DateTime
startEdge IntervalEdge
endEdge IntervalEdge
isIntervalEnabled bool
isReadOnly bool
return System

TimeInterval() public method

public TimeInterval ( ITimePeriod copy ) : System
copy ITimePeriod
return System

TimeInterval() protected method

protected TimeInterval ( ITimePeriod copy, bool isReadOnly ) : System
copy ITimePeriod
isReadOnly bool
return System

ToString() public method

public ToString ( ) : string
return string

Property Details

Anytime public_oe static_oe property

public static TimeInterval,Itenso.TimePeriod Anytime
return TimeInterval