public class WorkingTimeCollection extends AbstractList<T>
Represents a collection of WorkingTimeCollection
objects.
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
WorkingTime element)
Inserts the specified element at the specified position in this list.
|
boolean |
add(WorkingTime wt)
Adds a new WorkingTime instance to this collection.
|
void |
clear()
Removes all items from the
CalendarExceptionCollection . |
WorkingTime |
get(int index)
(@inheritDoc}
|
WorkingTime |
remove(int index)
Removes the element at the specified position in this list.
|
boolean |
remove(Object wt)
Removes
WorkingTime instance from this collection. |
int |
size()
Returns the number of objects contained in this
WorkingTimeCollection object. |
void |
sort(Comparator<? super WorkingTime> c) |
List<WorkingTime> |
toList()
Converts the WorkingTimeCollection object to a list of
WorkingTime objects. |
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, set, subList
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
addAll, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public final boolean add(WorkingTime wt)
Adds a new WorkingTime instance to this collection.
add
in interface Collection<WorkingTime>
add
in interface List<WorkingTime>
add
in class AbstractList<WorkingTime>
wt
- WorkingTime
instance to add.public void add(int index, WorkingTime element)
add
in interface List<WorkingTime>
add
in class AbstractList<WorkingTime>
index
- element
- public void clear()
CalendarExceptionCollection
.clear
in interface Collection<WorkingTime>
clear
in interface List<WorkingTime>
clear
in class AbstractList<WorkingTime>
public WorkingTime get(int index)
get
in interface List<WorkingTime>
get
in class AbstractList<WorkingTime>
index
- public boolean remove(Object wt)
WorkingTime
instance from this collection.remove
in interface Collection<WorkingTime>
remove
in interface List<WorkingTime>
remove
in class AbstractCollection<WorkingTime>
wt
- WorkingTime
instance to remove.public WorkingTime remove(int index)
remove
in interface List<WorkingTime>
remove
in class AbstractList<WorkingTime>
index
- public int size()
Returns the number of objects contained in this WorkingTimeCollection
object.
Read only int
.
size
in interface Collection<WorkingTime>
size
in interface List<WorkingTime>
size
in class AbstractCollection<WorkingTime>
public final void sort(Comparator<? super WorkingTime> c)
sort
in interface List<WorkingTime>
c
- public List<WorkingTime> toList()
Converts the WorkingTimeCollection object to a list of WorkingTime
objects.
WorkingTime
objects.