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