Package com.aspose.tasks
Class DayTypeCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.aspose.tasks.DayTypeCollection
-
public class DayTypeCollection extends AbstractList<T>
Represents a collection of
DayTypeobjects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Integer item)voidclear()Removes all items from this collection.booleancontains(int item)Returns true if the specified item is found in this collection; otherwise, false.voidcopyTo(Integer[] array, int arrayIndex)Copies the elements of this collection to the specified array, starting at the specified array index.Integerget(int index)Iterator<Integer>iterator()Integerremove(int index)Integerset(int index, Integer dayType)intsize()voidsort(Comparator<? super T> c)-
Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, 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, remove, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
add
public boolean add(Integer item)
- Specified by:
addin interfaceCollection<Integer>- Specified by:
addin interfaceList<Integer>- Overrides:
addin classAbstractList<Integer>
-
clear
public final void clear()
Removes all items from this collection.
- Specified by:
clearin interfaceCollection<Integer>- Specified by:
clearin interfaceList<Integer>- Overrides:
clearin classAbstractList<Integer>
-
contains
public final boolean contains(int item)
Returns true if the specified item is found in this collection; otherwise, false.
- Parameters:
item- the specified item to find.- Returns:
- true if the specified item is found in this collection; otherwise, false.
-
copyTo
public void copyTo(Integer[] array, int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.
- Parameters:
array- the specified one-dimensional array to copy elements toarrayIndex- the zero-based index of the specified array at which copying begins.
-
get
public Integer get(int index)
-
remove
public Integer remove(int index)
-
size
public final int size()
- Specified by:
sizein interfaceCollection<Integer>- Specified by:
sizein interfaceList<Integer>- Specified by:
sizein classAbstractCollection<Integer>
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c-
-
-