Aspose::Email::Calendar::Recurrences::ByNumberCollection Class Reference

Represents a set of months, weeks, days, hours, minutes or seconds in a recurrence rule. More...

Inherits System::Collections::Generic::ListExt< int32_t >, and IEquatable< System::SharedPtr< Aspose::Email::Calendar::Recurrences::ByNumberCollection > >.

Public Member Functions

 ByNumberCollection (int32_t min, int32_t max, bool isAllowNegative)
 
 ByNumberCollection (System::SharedPtr< ByNumberCollection > collection)
 
int32_t Add (int32_t value)
 Adds a month, week, day, hour, minute or second to the collection. More...
 
void Add (const System::ArrayPtr< int32_t > &values)
 Adds an array of month, week, day, hour, minute or second to the collection. More...
 
bool Equals (System::SharedPtr< ByNumberCollection > other) override
 Determines whether the specified ByNumberCollection is equal to this instance. More...
 
bool Equals (System::SharedPtr< System::Object > obj) override
 Determines whether the specified Object is equal to the current Object. More...
 
int32_t GetHashCode () const override
 GetHashCode returns a hash function for this object. More...
 
void SetTemplateWeakPtr (uint32_t argument) override
 

Protected Member Functions

virtual ~ByNumberCollection ()
 

Friends

class Aspose::Email::Calendar::Recurrences::RecurrenceRule
 

Detailed Description

Represents a set of months, weeks, days, hours, minutes or seconds in a recurrence rule.

Corresponds to various BYXXX parts such as BYDAY, BYMONTH of a recurrence rule.

Most of the ByXXX properties of RecurrenceRule are implemented as ByNumberCollection.

Constructor & Destructor Documentation

◆ ByNumberCollection() [1/2]

Aspose::Email::Calendar::Recurrences::ByNumberCollection::ByNumberCollection ( int32_t  min,
int32_t  max,
bool  isAllowNegative 
)

◆ ByNumberCollection() [2/2]

Aspose::Email::Calendar::Recurrences::ByNumberCollection::ByNumberCollection ( System::SharedPtr< ByNumberCollection collection)

◆ ~ByNumberCollection()

virtual Aspose::Email::Calendar::Recurrences::ByNumberCollection::~ByNumberCollection ( )
protectedvirtual

Member Function Documentation

◆ Add() [1/2]

void Aspose::Email::Calendar::Recurrences::ByNumberCollection::Add ( const System::ArrayPtr< int32_t > &  values)

Adds an array of month, week, day, hour, minute or second to the collection.

Parameters
valuesThe values.

◆ Add() [2/2]

int32_t Aspose::Email::Calendar::Recurrences::ByNumberCollection::Add ( int32_t  value)

Adds a month, week, day, hour, minute or second to the collection.

Throws an exception if the value is outside of the valid range for the time unit of this collection.

Parameters
valueThe value to add.
Returns
The zero-based index of the newly added item.

◆ Equals() [1/2]

bool Aspose::Email::Calendar::Recurrences::ByNumberCollection::Equals ( System::SharedPtr< ByNumberCollection other)
override

Determines whether the specified ByNumberCollection is equal to this instance.

Parameters
otherThe ByNumberCollection to compare with this instance.
Returns
true if the specified ByNumberCollection is equal to this instance; otherwise, false.

◆ Equals() [2/2]

bool Aspose::Email::Calendar::Recurrences::ByNumberCollection::Equals ( System::SharedPtr< System::Object >  obj)
override

Determines whether the specified Object is equal to the current Object.

Parameters
objThe Object to compare with the current Object.
Returns
Returns a boolean indicating if the passed in object obj is Equal to this.

◆ GetHashCode()

int32_t Aspose::Email::Calendar::Recurrences::ByNumberCollection::GetHashCode ( ) const
override

GetHashCode returns a hash function for this object.

Returns
Returns a hash function for this object.

◆ SetTemplateWeakPtr()

void Aspose::Email::Calendar::Recurrences::ByNumberCollection::SetTemplateWeakPtr ( uint32_t  argument)
override

Friends And Related Function Documentation

◆ Aspose::Email::Calendar::Recurrences::RecurrenceRule