Package com.aspose.tasks
Class WBSCodeMaskCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.aspose.tasks.WBSCodeMaskCollection
-
- All Implemented Interfaces:
Iterable<WBSCodeMask>
,Collection<WBSCodeMask>
,List<WBSCodeMask>
public class WBSCodeMaskCollection extends AbstractList<T>
Represents a collection of WBSCodeMask objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, WBSCodeMask element)
Inserts the specified element at the specified position in this list.boolean
add(WBSCodeMask item)
Adds the specified item to this collection.void
clear()
Removes all items from this collection.boolean
contains(Object item)
Returns true if the specified item is found in this collection; otherwise, false.WBSCodeMask
get(int index)
int
indexOf(Object item)
boolean
isReadOnly()
Gets a value indicating whether this collection is read-only; otherwise, false.Iterator<WBSCodeMask>
iterator()
Returns an enumerator for this collection.WBSCodeMask
remove(int index)
Removes the element at the specified position in this list.boolean
remove(Object item)
Removes the first occurrence of a specific object from this collection.int
size()
Gets the number of elements contained in this collection.void
sort(Comparator<? super T> c)
List<WBSCodeMask>
toList()
Converts a WBSCodeMaskCollection to a list ofWBSCodeMask
objects.-
Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, lastIndexOf, listIterator, listIterator, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, containsAll, isEmpty, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
add
public boolean add(WBSCodeMask item)
Adds the specified item to this collection.
- Specified by:
add
in interfaceCollection<WBSCodeMask>
- Specified by:
add
in interfaceList<WBSCodeMask>
- Overrides:
add
in classAbstractList<WBSCodeMask>
- Parameters:
item
- the specified item to add to this collection.- Returns:
- Returns true is the item was added successfully.
-
clear
public final void clear()
Removes all items from this collection.
- Specified by:
clear
in interfaceCollection<WBSCodeMask>
- Specified by:
clear
in interfaceList<WBSCodeMask>
- Overrides:
clear
in classAbstractList<WBSCodeMask>
-
contains
public final boolean contains(Object item)
Returns true if the specified item is found in this collection; otherwise, false.
- Specified by:
contains
in interfaceCollection<WBSCodeMask>
- Specified by:
contains
in interfaceList<WBSCodeMask>
- Overrides:
contains
in classAbstractCollection<WBSCodeMask>
- Parameters:
item
- the specified item to find.- Returns:
- true if the specified item is found in this collection; otherwise, false.
-
indexOf
public final int indexOf(Object item)
- Specified by:
indexOf
in interfaceList<WBSCodeMask>
- Overrides:
indexOf
in classAbstractList<WBSCodeMask>
-
isReadOnly
public final boolean isReadOnly()
Gets a value indicating whether this collection is read-only; otherwise, false.
- Returns:
- a value indicating whether this collection is read-only; otherwise, false.
-
iterator
public final Iterator<WBSCodeMask> iterator()
Returns an enumerator for this collection.
- Specified by:
iterator
in interfaceCollection<WBSCodeMask>
- Specified by:
iterator
in interfaceIterable<WBSCodeMask>
- Specified by:
iterator
in interfaceList<WBSCodeMask>
- Overrides:
iterator
in classAbstractList<WBSCodeMask>
- Returns:
- an enumerator for this collection.
-
remove
public final boolean remove(Object item)
Removes the first occurrence of a specific object from this collection.
- Specified by:
remove
in interfaceCollection<WBSCodeMask>
- Specified by:
remove
in interfaceList<WBSCodeMask>
- Overrides:
remove
in classAbstractCollection<WBSCodeMask>
- Parameters:
item
- the specified object to remove.- Returns:
- true if the specified object was successfully removed from this collection; otherwise, false.
-
size
public final int size()
Gets the number of elements contained in this collection.
- Specified by:
size
in interfaceCollection<WBSCodeMask>
- Specified by:
size
in interfaceList<WBSCodeMask>
- Specified by:
size
in classAbstractCollection<WBSCodeMask>
- Returns:
- the number of elements contained in this collection.
-
toList
public final List<WBSCodeMask> toList()
Converts a WBSCodeMaskCollection to a list of
WBSCodeMask
objects.- Returns:
- Generic list of
WBSCodeMask
objects.
-
remove
public WBSCodeMask remove(int index)
Removes the element at the specified position in this list.- Specified by:
remove
in interfaceList<WBSCodeMask>
- Overrides:
remove
in classAbstractList<WBSCodeMask>
- Parameters:
index
-- Returns:
-
add
public void add(int index, WBSCodeMask element)
Inserts the specified element at the specified position in this list.- Specified by:
add
in interfaceList<WBSCodeMask>
- Overrides:
add
in classAbstractList<WBSCodeMask>
- Parameters:
index
-element
-
-
get
public WBSCodeMask get(int index)
- Specified by:
get
in interfaceList<WBSCodeMask>
- Specified by:
get
in classAbstractList<WBSCodeMask>
- Parameters:
index
-- Returns:
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c
-
-
-