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
DayType
objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(Integer item)
void
clear()
Removes all items from this collection.boolean
contains(int item)
Returns true if the specified item is found in this collection; otherwise, false.void
copyTo(Integer[] array, int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.Integer
get(int index)
Iterator<Integer>
iterator()
Integer
remove(int index)
Integer
set(int index, Integer dayType)
int
size()
void
sort(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:
add
in interfaceCollection<Integer>
- Specified by:
add
in interfaceList<Integer>
- Overrides:
add
in classAbstractList<Integer>
-
clear
public final void clear()
Removes all items from this collection.
- Specified by:
clear
in interfaceCollection<Integer>
- Specified by:
clear
in interfaceList<Integer>
- Overrides:
clear
in 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:
size
in interfaceCollection<Integer>
- Specified by:
size
in interfaceList<Integer>
- Specified by:
size
in classAbstractCollection<Integer>
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c
-
-
-