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 e) |
void |
clear()
Removes all
WorkingTime items from collection. |
boolean |
contains(Object item)
Checks if the specified element is in the List.
|
WorkingTime |
get(int index)
(@inheritDoc}
|
WorkingTime |
remove(int index)
Removes the element at the specified position in this list.
|
boolean |
remove(Object item)
Removes
WorkingTime instance from this collection. |
int |
size()
Gets 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, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
forEach, iterator, spliterator
addAll, containsAll, isEmpty, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public final boolean add(WorkingTime e)
add
in interface Collection<WorkingTime>
add
in interface List<WorkingTime>
add
in class AbstractList<WorkingTime>
e
- public final void clear()
Removes all WorkingTime
items from collection.
clear
in interface Collection<WorkingTime>
clear
in interface List<WorkingTime>
clear
in class AbstractList<WorkingTime>
public final boolean contains(Object item)
Checks if the specified element is in the List. Performs a linear O(n) search.
contains
in interface Collection<WorkingTime>
contains
in interface List<WorkingTime>
contains
in class AbstractCollection<WorkingTime>
item
- the specified item.public final boolean remove(Object item)
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 final int size()
Gets the number of objects contained in this WorkingTimeCollection
object.
size
in interface Collection<WorkingTime>
size
in interface List<WorkingTime>
size
in class AbstractCollection<WorkingTime>
WorkingTimeCollection
object.public final void sort(Comparator<? super WorkingTime> c)
sort
in interface List<WorkingTime>
c
- public final List<WorkingTime> toList()
Converts the WorkingTimeCollection object to a list of WorkingTime
objects.
WorkingTime
objects.public void add(int index, WorkingTime element)
add
in interface List<WorkingTime>
add
in class AbstractList<WorkingTime>
index
- element
- public WorkingTime get(int index)
get
in interface List<WorkingTime>
get
in class AbstractList<WorkingTime>
index
- public WorkingTime remove(int index)
remove
in interface List<WorkingTime>
remove
in class AbstractList<WorkingTime>
index
- Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.