Package com.aspose.tasks
Class WeekDayCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.aspose.tasks.WeekDayCollection
-
public class WeekDayCollection extends AbstractList<T>
Represents a collection of
WeekDay
objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, WeekDay item)
InsertsWeekDay
at specified index.boolean
add(WeekDay item)
Adds aWeekDay
instance to this object.void
clear()
Clear the WeekDayCollection object.boolean
contains(WeekDay item)
Checks if collection containsWeekDay
.specified.void
copyTo(WeekDay[] array, int arrayIndex)
Copies collection content to an array at specified index.WeekDay
get(int index)
(@inheritDoc}int
indexOf(WeekDay item)
Returns index ofWeekDay
specified.boolean
isReadOnly()
Iterator<WeekDay>
iterator()
Returns an enumerator for this collection.WeekDay
remove(int index)
boolean
remove(Object obj)
RemovesWeekDay
specified, if any.int
size()
Gets the number of objects contained in thisWeekDayCollection
object.void
sort(Comparator<? super T> c)
List<WeekDay>
toList()
Converts the WeekDayCollection object to a list ofWeekDay
objects.-
Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
add
public final boolean add(WeekDay item)
Adds a
WeekDay
instance to this object.- Specified by:
add
in interfaceCollection<WeekDay>
- Specified by:
add
in interfaceList<WeekDay>
- Overrides:
add
in classAbstractList<WeekDay>
- Parameters:
item
- The item to add.- Returns:
-
clear
public final void clear()
Clear the WeekDayCollection object.
- Specified by:
clear
in interfaceCollection<WeekDay>
- Specified by:
clear
in interfaceList<WeekDay>
- Overrides:
clear
in classAbstractList<WeekDay>
-
contains
public final boolean contains(WeekDay item)
Checks if collection contains
WeekDay
.specified.- Parameters:
item
- The item to check against to.- Returns:
- true, if collection contains item specified, of false otherwise.
-
copyTo
public final void copyTo(WeekDay[] array, int arrayIndex)
Copies collection content to an array at specified index.
- Parameters:
array
- Destination array ofWeekDay
to copy toarrayIndex
- Starting index for copy operation.
-
get
public final WeekDay get(int index)
(@inheritDoc}
-
indexOf
public final int indexOf(WeekDay item)
Returns index of
WeekDay
specified.- Parameters:
item
- The item to check against to.- Returns:
- Zero-based index of
WeekDay
specified, if present, or -1 otherwise.
-
isReadOnly
public final boolean isReadOnly()
- Returns:
-
remove
public final boolean remove(Object obj)
Removes
WeekDay
specified, if any.- Specified by:
remove
in interfaceCollection<WeekDay>
- Specified by:
remove
in interfaceList<WeekDay>
- Overrides:
remove
in classAbstractCollection<WeekDay>
- Parameters:
item
- The item to remove.- Returns:
- True, if
WeekDay
was removed, false if such item was not found.
-
remove
public final WeekDay remove(int index)
-
size
public final int size()
Gets the number of objects contained in this
WeekDayCollection
object.- Specified by:
size
in interfaceCollection<WeekDay>
- Specified by:
size
in interfaceList<WeekDay>
- Specified by:
size
in classAbstractCollection<WeekDay>
- Returns:
- the number of objects contained in this
WeekDayCollection
object.
-
toList
public final List<WeekDay> toList()
Converts the WeekDayCollection object to a list of
WeekDay
objects.- Returns:
- List of
WeekDay
objects.
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c
-
-
-