public class DayTypeCollection extends AbstractList<T>
Represents a collection of DayType
objects.
Modifier and Type | Method and 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) |
add, addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public boolean add(Integer item)
add
in interface Collection<Integer>
add
in interface List<Integer>
add
in class AbstractList<Integer>
public void clear()
Removes all items from this collection.
clear
in interface Collection<Integer>
clear
in interface List<Integer>
clear
in class AbstractList<Integer>
public boolean contains(int item)
Returns true if the specified item is found in this collection; otherwise, false.
item
- the specified item to find.public void copyTo(Integer[] array, int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.
array
- the specified one-dimensional array to copy elements toarrayIndex
- the zero-based index of the specified array at which copying begins.public Integer get(int index)
public Integer remove(int index)
public final int size()
size
in interface Collection<Integer>
size
in interface List<Integer>
size
in class AbstractCollection<Integer>
public void sort(Comparator<? super T> c)
c
-