Package com.aspose.tasks
Class OutlineCodeDefinitionCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.aspose.tasks.OutlineCodeDefinitionCollection
-
- All Implemented Interfaces:
Iterable<OutlineCodeDefinition>
,Collection<OutlineCodeDefinition>
,List<OutlineCodeDefinition>
public class OutlineCodeDefinitionCollection extends AbstractList<T>
Represents a collection of
OutlineCodeDefinition
objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(OutlineCodeDefinition item)
Adds the specified item to this collection.OutlineCodeDefinition
get(int index)
Returns the element at the specified position in this collection.Iterator<OutlineCodeDefinition>
iterator()
Returns an iterator over elements from this collection.OutlineCodeDefinition
remove(int index)
Removes the element at the specified position in this collection and returns the element that was removed from the collection.int
size()
Gets the number of elements contained in this collection.void
sort(Comparator<? super OutlineCodeDefinition> c)
List<OutlineCodeDefinition>
toList()
Converts this OutlineCodeDefinitionCollection object to a list ofOutlineCodeDefinition
objects.-
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, set, 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(OutlineCodeDefinition item)
Adds the specified item to this collection.- Specified by:
add
in interfaceCollection<OutlineCodeDefinition>
- Specified by:
add
in interfaceList<OutlineCodeDefinition>
- Overrides:
add
in classAbstractList<OutlineCodeDefinition>
- Parameters:
item
- the specified item to add to the collection.- Returns:
- true if the specified item was added successfully; otherwise, false.
-
get
public OutlineCodeDefinition get(int index)
Returns the element at the specified position in this collection.- Specified by:
get
in interfaceList<OutlineCodeDefinition>
- Specified by:
get
in classAbstractList<OutlineCodeDefinition>
- Parameters:
index
- specified position to getInternal element at.- Returns:
- the element at the specified position in this collection.
-
iterator
public Iterator<OutlineCodeDefinition> iterator()
Returns an iterator over elements from this collection.- Specified by:
iterator
in interfaceCollection<OutlineCodeDefinition>
- Specified by:
iterator
in interfaceIterable<OutlineCodeDefinition>
- Specified by:
iterator
in interfaceList<OutlineCodeDefinition>
- Overrides:
iterator
in classAbstractList<OutlineCodeDefinition>
- Returns:
- an iterator over elements from this collection.
-
remove
public OutlineCodeDefinition remove(int index)
Removes the element at the specified position in this collection and returns the element that was removed from the collection.- Specified by:
remove
in interfaceList<OutlineCodeDefinition>
- Overrides:
remove
in classAbstractList<OutlineCodeDefinition>
- Parameters:
index
- the specified position to remove the element at.- Returns:
- the element that was removed from the collection.
-
size
public int size()
Gets the number of elements contained in this collection.
- Specified by:
size
in interfaceCollection<OutlineCodeDefinition>
- Specified by:
size
in interfaceList<OutlineCodeDefinition>
- Specified by:
size
in classAbstractCollection<OutlineCodeDefinition>
- Returns:
- the number of elements contained in this collection.
-
sort
public void sort(Comparator<? super OutlineCodeDefinition> c)
- Specified by:
sort
in interfaceList<OutlineCodeDefinition>
- Parameters:
c
-
-
toList
public final List<OutlineCodeDefinition> toList()
Converts this OutlineCodeDefinitionCollection object to a list of
OutlineCodeDefinition
objects.- Returns:
- List of
OutlineCodeDefinition
objects.
-
-