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
WeekDayobjects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, WeekDay item)InsertsWeekDayat specified index.booleanadd(WeekDay item)Adds aWeekDayinstance to this object.voidclear()Clear the WeekDayCollection object.booleancontains(WeekDay item)Checks if collection containsWeekDay.specified.voidcopyTo(WeekDay[] array, int arrayIndex)Copies collection content to an array at specified index.WeekDayget(int index)(@inheritDoc}intindexOf(WeekDay item)Returns index ofWeekDayspecified.booleanisReadOnly()Iterator<WeekDay>iterator()Returns an enumerator for this collection.WeekDayremove(int index)booleanremove(Object obj)RemovesWeekDayspecified, if any.intsize()Gets the number of objects contained in thisWeekDayCollectionobject.voidsort(Comparator<? super T> c)List<WeekDay>toList()Converts the WeekDayCollection object to a list ofWeekDayobjects.-
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
WeekDayinstance to this object.- Specified by:
addin interfaceCollection<WeekDay>- Specified by:
addin interfaceList<WeekDay>- Overrides:
addin classAbstractList<WeekDay>- Parameters:
item- The item to add.- Returns:
-
clear
public final void clear()
Clear the WeekDayCollection object.
- Specified by:
clearin interfaceCollection<WeekDay>- Specified by:
clearin interfaceList<WeekDay>- Overrides:
clearin 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 ofWeekDayto 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
WeekDayspecified.- Parameters:
item- The item to check against to.- Returns:
- Zero-based index of
WeekDayspecified, if present, or -1 otherwise.
-
isReadOnly
public final boolean isReadOnly()
- Returns:
-
remove
public final boolean remove(Object obj)
Removes
WeekDayspecified, if any.- Specified by:
removein interfaceCollection<WeekDay>- Specified by:
removein interfaceList<WeekDay>- Overrides:
removein classAbstractCollection<WeekDay>- Parameters:
item- The item to remove.- Returns:
- True, if
WeekDaywas 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
WeekDayCollectionobject.- Specified by:
sizein interfaceCollection<WeekDay>- Specified by:
sizein interfaceList<WeekDay>- Specified by:
sizein classAbstractCollection<WeekDay>- Returns:
- the number of objects contained in this
WeekDayCollectionobject.
-
toList
public final List<WeekDay> toList()
Converts the WeekDayCollection object to a list of
WeekDayobjects.- Returns:
- List of
WeekDayobjects.
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c-
-
-