C# Class Itenso.TimePeriod.TimePeriodCollection

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

Public Methods

Method Description
Add ( ITimePeriod item ) : void
AddAll ( IEnumerable timePeriods ) : void
Clear ( ) : void
Contains ( ITimePeriod item ) : 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
HasInsidePeriods ( ITimePeriod test ) : bool
HasIntersectionPeriods ( System.DateTime test ) : bool
HasIntersectionPeriods ( ITimePeriod test ) : bool
HasOverlapPeriods ( ITimePeriod test ) : bool
IndexOf ( ITimePeriod item ) : int
Insert ( int index, ITimePeriod item ) : void
InsidePeriods ( ITimePeriod test ) : ITimePeriodCollection
IntersectionPeriods ( System.DateTime test ) : ITimePeriodCollection
IntersectionPeriods ( ITimePeriod test ) : ITimePeriodCollection
IntersectsWith ( ITimePeriod test ) : bool
IsSamePeriod ( ITimePeriod test ) : bool
Move ( System.TimeSpan delta ) : void
OverlapPeriods ( ITimePeriod test ) : ITimePeriodCollection
OverlapsWith ( ITimePeriod test ) : bool
RelationPeriods ( ITimePeriod test, PeriodRelation relation ) : ITimePeriodCollection
Remove ( ITimePeriod item ) : bool
RemoveAt ( int index ) : void
Setup ( System.DateTime newStart, System.DateTime newEnd ) : void
SortByDuration ( ListSortDirection sortDirection = ListSortDirection.Ascending ) : void
SortByEnd ( ListSortDirection sortDirection = ListSortDirection.Ascending ) : void
SortByStart ( ListSortDirection sortDirection = ListSortDirection.Ascending ) : void
TimePeriodCollection ( ) : System
TimePeriodCollection ( IEnumerable timePeriods ) : System
ToString ( ) : string
this ( int index ) : ITimePeriod

Protected Methods

Method Description
ComputeHashCode ( ) : int
Format ( ITimeFormatter formatter ) : string
GetDuration ( ) : TimeSpan?
GetEnd ( ) : DateTime?
GetStart ( ) : DateTime?
GetStartEnd ( System.DateTime &start, System.DateTime &end ) : void
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

Clear() public method

public Clear ( ) : void
return void

ComputeHashCode() protected method

protected ComputeHashCode ( ) : int
return int

Contains() public method

public Contains ( ITimePeriod item ) : bool
item 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

GetDuration() protected method

protected GetDuration ( ) : TimeSpan?
return TimeSpan?

GetEnd() protected method

protected GetEnd ( ) : DateTime?
return DateTime?

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

GetStart() protected method

protected GetStart ( ) : DateTime?
return DateTime?

GetStartEnd() protected method

protected GetStartEnd ( System.DateTime &start, System.DateTime &end ) : void
start System.DateTime
end System.DateTime
return void

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

HasInsidePeriods() public method

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

HasIntersectionPeriods() public method

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

HasIntersectionPeriods() public method

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

HasOverlapPeriods() public method

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

IndexOf() public method

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

Insert() public method

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

InsidePeriods() public method

public InsidePeriods ( ITimePeriod test ) : ITimePeriodCollection
test ITimePeriod
return ITimePeriodCollection

IntersectionPeriods() public method

public IntersectionPeriods ( System.DateTime test ) : ITimePeriodCollection
test System.DateTime
return ITimePeriodCollection

IntersectionPeriods() public method

public IntersectionPeriods ( ITimePeriod test ) : ITimePeriodCollection
test ITimePeriod
return ITimePeriodCollection

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

OverlapPeriods() public method

public OverlapPeriods ( ITimePeriod test ) : ITimePeriodCollection
test ITimePeriod
return ITimePeriodCollection

OverlapsWith() public method

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

RelationPeriods() public method

public RelationPeriods ( ITimePeriod test, PeriodRelation relation ) : ITimePeriodCollection
test ITimePeriod
relation PeriodRelation
return ITimePeriodCollection

Remove() public method

public Remove ( ITimePeriod item ) : bool
item 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

SortByDuration() public method

public SortByDuration ( ListSortDirection sortDirection = ListSortDirection.Ascending ) : void
sortDirection ListSortDirection
return void

SortByEnd() public method

public SortByEnd ( ListSortDirection sortDirection = ListSortDirection.Ascending ) : void
sortDirection ListSortDirection
return void

SortByStart() public method

public SortByStart ( ListSortDirection sortDirection = ListSortDirection.Ascending ) : void
sortDirection ListSortDirection
return void

TimePeriodCollection() public method

public TimePeriodCollection ( ) : System
return System

TimePeriodCollection() public method

public TimePeriodCollection ( 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