ByNumberCollection

Inheritance: java.lang.Object, com.aspose.ms.System.Collections.Generic.List

public class ByNumberCollection extends System.Collections.Generic.List<Integer>

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 {@link RecurrenceRule} are implemented as ByNumberCollection.

```

Methods

Method Description
add(int value) Adds a month, week, day, hour, minute or second to the collection.
add(int[] values) Adds an array of month, week, day, hour, minute or second to the collection.
equals(ByNumberCollection other) Determines whether the specified ByNumberCollection is equal to this instance.
equals(Object obj) Determines whether the specified Object is equal to the current Object.
hashCode() GetHashCode returns a hash function for this object.

add(int value)

public final int add(int value)

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

Parameters:

Parameter Type Description
value int The value to add.

```

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

``` |

Returns: int - The zero-based index of the newly added item.

add(int[] values)

public final void add(int[] values)

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

Parameters:

Parameter Type Description
values int[] The values.

equals(ByNumberCollection other)

public boolean equals(ByNumberCollection other)

Determines whether the specified ByNumberCollection is equal to this instance.

Parameters:

Parameter Type Description
other ByNumberCollection The ByNumberCollection to compare with this instance.

Returns: boolean - ``` true ``` if the specified ByNumberCollection is equal to this instance; otherwise, ``` false ```.

equals(Object obj)

public boolean equals(Object obj)

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

Parameters:

Parameter Type Description
obj java.lang.Object The Object to compare with the current Object.

Returns: boolean - Returns a boolean indicating if the passed in object obj is Equal to this.

hashCode()

public int hashCode()

GetHashCode returns a hash function for this object.

Returns: int - Returns a hash function for this object.