public class ByNumberCollection extends com.aspose.ms.System.Collections.ObjectModel.Collection<Integer>
Represents a set of months, weeks, days, hours, minutes or seconds in a recurrence rule.
<p>Corresponds to various BYXXX parts such as BYDAY, BYMONTH of a recurrence rule.</p>
<p>Most of the ByXXX properties of {@code RecurrenceRule} are implemented as ByNumberCollection.</p>
Modifier and Type | Method and Description |
---|---|
int |
add(int value)
Adds a month, week, day, hour, minute or second to the collection.
|
void |
add(int[] values)
Adds an array of month, week, day, hour, minute or second to the collection.
|
boolean |
contains(int value)
Determines whether the value is in the collection.
|
boolean |
equals(ByNumberCollection other)
Determines whether the specified
Aspose.iCalendar.ByNumberCollection is equal to this instance. |
boolean |
equals(Object obj)
Determines whether the specified Object is equal to the current Object.
|
Integer |
get(int index)
Gets or sets a value in the collection at the specified position.
|
int |
hashCode()
GetHashCode returns a hash function for this object.
|
void |
set(int index,
int value)
Gets or sets a value in the collection at the specified position.
|
void |
sort()
Sorts the elements in the collection.
|
public int add(int value)
Adds a month, week, day, hour, minute or second to the collection.
value
- The value to add.
<p>Throws an exception if the value is outside of the valid range for the time unit of this collection.</p>
public void add(int[] values)
Adds an array of month, week, day, hour, minute or second to the collection.
values
- The values.public boolean contains(int value)
Determines whether the value is in the collection.
value
- The value to find.public void sort()
Sorts the elements in the collection.
public Integer get(int index)
Gets or sets a value in the collection at the specified position.
index
- a int.Integer
object.public void set(int index, int value)
Gets or sets a value in the collection at the specified position.
index
- a int.value
- a int.public boolean equals(ByNumberCollection other)
Determines whether the specified Aspose.iCalendar.ByNumberCollection
is equal to this instance.
other
- The Aspose.iCalendar.ByNumberCollection
to compare with this instance.true
if the specified Aspose.iCalendar.ByNumberCollection
is equal to this instance; otherwise, false
.public boolean equals(Object obj)
Determines whether the specified Object is equal to the current Object.
Copyright (c) 2008-2015 Aspose Pty Ltd. All Rights Reserved.