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
OutlineCodeDefinitionobjects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(OutlineCodeDefinition item)Adds the specified item to this collection.OutlineCodeDefinitionget(int index)Returns the element at the specified position in this collection.Iterator<OutlineCodeDefinition>iterator()Returns an iterator over elements from this collection.OutlineCodeDefinitionremove(int index)Removes the element at the specified position in this collection and returns the element that was removed from the collection.intsize()Gets the number of elements contained in this collection.voidsort(Comparator<? super OutlineCodeDefinition> c)List<OutlineCodeDefinition>toList()Converts this OutlineCodeDefinitionCollection object to a list ofOutlineCodeDefinitionobjects.-
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:
addin interfaceCollection<OutlineCodeDefinition>- Specified by:
addin interfaceList<OutlineCodeDefinition>- Overrides:
addin 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:
getin interfaceList<OutlineCodeDefinition>- Specified by:
getin 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:
iteratorin interfaceCollection<OutlineCodeDefinition>- Specified by:
iteratorin interfaceIterable<OutlineCodeDefinition>- Specified by:
iteratorin interfaceList<OutlineCodeDefinition>- Overrides:
iteratorin 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:
removein interfaceList<OutlineCodeDefinition>- Overrides:
removein 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:
sizein interfaceCollection<OutlineCodeDefinition>- Specified by:
sizein interfaceList<OutlineCodeDefinition>- Specified by:
sizein classAbstractCollection<OutlineCodeDefinition>- Returns:
- the number of elements contained in this collection.
-
sort
public void sort(Comparator<? super OutlineCodeDefinition> c)
- Specified by:
sortin interfaceList<OutlineCodeDefinition>- Parameters:
c-
-
toList
public final List<OutlineCodeDefinition> toList()
Converts this OutlineCodeDefinitionCollection object to a list of
OutlineCodeDefinitionobjects.- Returns:
- List of
OutlineCodeDefinitionobjects.
-
-