C# Class Itenso.TimePeriod.TimePeriodChain

Inheritance: ITimePeriodChain
ファイルを表示 Open project: jwg4/date-difference Class Usage Examples

Public Methods

Method Description
Add ( ITimePeriod item ) : void
AddAll ( IEnumerable timePeriods ) : void
Clear ( ) : void
Contains ( ITimePeriod period ) : bool
ContainsPeriod ( ITimePeriod test ) : bool
CopyTo ( ITimePeriod array, int arrayIndex ) : void
Equals ( object obj ) : bool
GetDescription ( ITimeFormatter formatter = null ) : string
GetEnumerator ( ) : IEnumerator
GetHashCode ( ) : int
GetRelation ( ITimePeriod test ) : PeriodRelation
HasInside ( System.DateTime test ) : bool
HasInside ( ITimePeriod test ) : bool
IndexOf ( ITimePeriod period ) : int
Insert ( int index, ITimePeriod period ) : void
IntersectsWith ( ITimePeriod test ) : bool
IsSamePeriod ( ITimePeriod test ) : bool
Move ( System.TimeSpan delta ) : void
OverlapsWith ( ITimePeriod test ) : bool
Remove ( ITimePeriod period ) : bool
RemoveAt ( int index ) : void
Setup ( System.DateTime newStart, System.DateTime newEnd ) : void
TimePeriodChain ( ) : System
TimePeriodChain ( IEnumerable timePeriods ) : System
ToString ( ) : string
this ( int index ) : ITimePeriod

Protected Methods

Method Description
CheckReadOnlyItem ( ITimePeriod timePeriod ) : void
CheckSpaceAfter ( System.DateTime moment, System.TimeSpan duration ) : void
CheckSpaceBefore ( System.DateTime moment, System.TimeSpan duration ) : void
ComputeHashCode ( ) : int
Format ( ITimeFormatter formatter ) : string
IsEqual ( object obj ) : bool

Private Methods

Method Description
HasSameData ( IList comp ) : bool
IEnumerable ( ) : IEnumerator

Method Details

Add() public method

public Add ( ITimePeriod item ) : void
item ITimePeriod
return void

AddAll() public method

public AddAll ( IEnumerable timePeriods ) : void
timePeriods IEnumerable
return void

CheckReadOnlyItem() protected method

protected CheckReadOnlyItem ( ITimePeriod timePeriod ) : void
timePeriod ITimePeriod
return void

CheckSpaceAfter() protected method

protected CheckSpaceAfter ( System.DateTime moment, System.TimeSpan duration ) : void
moment System.DateTime
duration System.TimeSpan
return void

CheckSpaceBefore() protected method

protected CheckSpaceBefore ( System.DateTime moment, System.TimeSpan duration ) : void
moment System.DateTime
duration System.TimeSpan
return void

Clear() public method

public Clear ( ) : void
return void

ComputeHashCode() protected method

protected ComputeHashCode ( ) : int
return int

Contains() public method

public Contains ( ITimePeriod period ) : bool
period ITimePeriod
return bool

ContainsPeriod() public method

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

CopyTo() public method

public CopyTo ( ITimePeriod array, int arrayIndex ) : void
array ITimePeriod
arrayIndex int
return void

Equals() public final method

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

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

GetEnumerator() public method

public GetEnumerator ( ) : IEnumerator
return IEnumerator

GetHashCode() public final method

public final GetHashCode ( ) : int
return int

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

IndexOf() public method

public IndexOf ( ITimePeriod period ) : int
period ITimePeriod
return int

Insert() public method

public Insert ( int index, ITimePeriod period ) : void
index int
period ITimePeriod
return void

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 delta ) : void
delta System.TimeSpan
return void

OverlapsWith() public method

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

Remove() public method

public Remove ( ITimePeriod period ) : bool
period ITimePeriod
return bool

RemoveAt() public method

public RemoveAt ( int index ) : void
index int
return void

Setup() public method

public Setup ( System.DateTime newStart, System.DateTime newEnd ) : void
newStart System.DateTime
newEnd System.DateTime
return void

TimePeriodChain() public method

public TimePeriodChain ( ) : System
return System

TimePeriodChain() public method

public TimePeriodChain ( IEnumerable timePeriods ) : System
timePeriods IEnumerable
return System

ToString() public method

public ToString ( ) : string
return string

this() public method

public this ( int index ) : ITimePeriod
index int
return ITimePeriod