Targeting System 2.0.0
Plugin for multipurpose targeting and visual effects.
UniRx.TimeInterval< T > Struct Template Reference

Represents a value associated with time interval information. The time interval can represent the time it took to produce the value, the interval relative to a previous value, the value's delivery time relative to a base, etc. More...

Inheritance diagram for UniRx.TimeInterval< T >:

Public Member Functions

 TimeInterval (T value, TimeSpan interval)
 Constructs a time interval value. More...
 
bool Equals (TimeInterval< T > other)
 Determines whether the current TimeInterval<T> value has the same Value and Interval as a specified TimeInterval<T> value. More...
 
override bool Equals (object obj)
 Determines whether the specified System.Object is equal to the current TimeInterval<T>. More...
 
override int GetHashCode ()
 Returns the hash code for the current TimeInterval<T> value. More...
 
override string ToString ()
 Returns a string representation of the current TimeInterval<T> value. More...
 

Static Public Member Functions

static bool operator== (TimeInterval< T > first, TimeInterval< T > second)
 Determines whether the two specified TimeInterval<T> values have the same Value and Interval. More...
 
static bool operator!= (TimeInterval< T > first, TimeInterval< T > second)
 Determines whether the two specified TimeInterval<T> values don't have the same Value and Interval. More...
 

Properties

Value [get]
 Gets the value.
 
TimeSpan Interval [get]
 Gets the interval.
 

Detailed Description

Represents a value associated with time interval information. The time interval can represent the time it took to produce the value, the interval relative to a previous value, the value's delivery time relative to a base, etc.

Template Parameters
TThe type of the value being annotated with time interval information.

Constructor & Destructor Documentation

◆ TimeInterval()

UniRx.TimeInterval< T >.TimeInterval ( value,
TimeSpan  interval 
)

Constructs a time interval value.

Parameters
valueThe value to be annotated with a time interval.
intervalTime interval associated with the value.

Member Function Documentation

◆ Equals() [1/2]

override bool UniRx.TimeInterval< T >.Equals ( object  obj)

Determines whether the specified System.Object is equal to the current TimeInterval<T>.

Parameters
objThe System.Object to compare with the current TimeInterval<T>.
Returns
true if the specified System.Object is equal to the current TimeInterval<T>; otherwise, false.

◆ Equals() [2/2]

bool UniRx.TimeInterval< T >.Equals ( TimeInterval< T >  other)

Determines whether the current TimeInterval<T> value has the same Value and Interval as a specified TimeInterval<T> value.

Parameters
otherAn object to compare to the current TimeInterval<T> value.
Returns
true if both TimeInterval<T> values have the same Value and Interval; otherwise, false.

◆ GetHashCode()

override int UniRx.TimeInterval< T >.GetHashCode ( )

Returns the hash code for the current TimeInterval<T> value.

Returns
A hash code for the current TimeInterval<T> value.

◆ operator!=()

static bool UniRx.TimeInterval< T >.operator!= ( TimeInterval< T >  first,
TimeInterval< T >  second 
)
static

Determines whether the two specified TimeInterval<T> values don't have the same Value and Interval.

Parameters
firstThe first TimeInterval<T> value to compare.
secondThe second TimeInterval<T> value to compare.
Returns
true if the first TimeInterval<T> value has a different Value or Interval as the second TimeInterval<T> value; otherwise, false.

◆ operator==()

static bool UniRx.TimeInterval< T >.operator== ( TimeInterval< T >  first,
TimeInterval< T >  second 
)
static

Determines whether the two specified TimeInterval<T> values have the same Value and Interval.

Parameters
firstThe first TimeInterval<T> value to compare.
secondThe second TimeInterval<T> value to compare.
Returns
true if the first TimeInterval<T> value has the same Value and Interval as the second TimeInterval<T> value; otherwise, false.

◆ ToString()

override string UniRx.TimeInterval< T >.ToString ( )

Returns a string representation of the current TimeInterval<T> value.

Returns
String representation of the current TimeInterval<T> value.

The documentation for this struct was generated from the following file: