public class ByDayCollection extends ArrayList
Represents a collection of ByDay
objects.
Modifier and Type | Method and Description |
---|---|
boolean |
add(ByDay byDay)
Adds a
ByDay to the collection. |
boolean |
add(int dayOfWeek)
Creates and adds a
ByDay that represents all occurrences of the day of the week to the collection. |
boolean |
add(int nthOccurrence,
int dayOfWeek)
Creates and adds a
ByDay to the collection. |
boolean |
contains(int dayOfWeek)
Returns True if the specified day of week is present in the collection.
|
boolean |
equals(ByDayCollection other) |
boolean |
equals(Object obj) |
ByDay |
get(int index)
Gets or sets a
ByDay from the collection. |
int |
hashCode() |
void |
set(int index,
ByDay value) |
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(ByDay byDay)
Adds a ByDay
to the collection.
byDay
- The item to add to the collection.public boolean add(int dayOfWeek)
Creates and adds a ByDay
that represents all occurrences of the day of the week to the collection.
dayOfWeek
- A day of the week.public boolean add(int nthOccurrence, int dayOfWeek)
Creates and adds a ByDay
to the collection.
nthOccurrence
- The nth occurrence of the day of the week.dayOfWeek
- A day of the week.public ByDay get(int index)
Gets or sets a ByDay
from the collection.
public void set(int index, ByDay value)
public boolean contains(int dayOfWeek)
Returns True if the specified day of week is present in the collection.
public boolean equals(ByDayCollection other)
public boolean equals(Object obj)
equals
in interface Collection
equals
in interface List
equals
in class AbstractList
public int hashCode()
hashCode
in interface Collection
hashCode
in interface List
hashCode
in class AbstractList
Copyright (c) 2008-2013 Aspose Pty Ltd. All Rights Reserved.