public class ByNumberCollection extends ArrayList<Integer>
Represents a set of months, weeks, days, hours, minutes or seconds in a recurrence rule.
RecurrenceRule
are implemented as ByNumberCollection.
Modifier and Type | Method and Description |
---|---|
boolean |
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) |
boolean |
equals(Object obj) |
Integer |
get(int index)
Gets or sets a value in the collection at the specified position.
|
int |
hashCode() |
void |
set(int index,
int value) |
void |
sort()
Sorts the elements in the collection.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, trimToSize
containsAll, toString
containsAll
public boolean add(int value)
Adds a month, week, day, hour, minute or second to the collection.
value
- The value to add.
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.
public void set(int index, int value)
public boolean equals(ByNumberCollection other)
public boolean equals(Object obj)
equals
in interface Collection<Integer>
equals
in interface List<Integer>
equals
in class AbstractList<Integer>
public int hashCode()
hashCode
in interface Collection<Integer>
hashCode
in interface List<Integer>
hashCode
in class AbstractList<Integer>
Copyright (c) 2008-2013 Aspose Pty Ltd. All Rights Reserved.