DayTypeCollection

Inheritance: java.lang.Object, java.util.AbstractCollection, java.util.AbstractList, com.aspose.tasks.AbstractList

public class DayTypeCollection extends AbstractList<Integer>

Represents a collection of DayType objects.

Methods

MethodDescription
add(Integer item)
clear()Removes all items from this collection.
contains(int item)Returns true if the specified item is found in this collection; otherwise, false.
copyTo(Integer[] array, int arrayIndex)Copies the elements of this collection to the specified array, starting at the specified array index.
get(int index)
iterator()
remove(int index)
set(int index, Integer dayType)
size()

add(Integer item)

public boolean add(Integer item)

Parameters:

ParameterTypeDescription
itemjava.lang.Integer

Returns: boolean

clear()

public final void clear()

Removes all items from this collection.

contains(int item)

public final boolean contains(int item)

Returns true if the specified item is found in this collection; otherwise, false.

Parameters:

ParameterTypeDescription
itemintthe specified item to find.

Returns: boolean - true if the specified item is found in this collection; otherwise, false.

copyTo(Integer[] array, int arrayIndex)

public void copyTo(Integer[] array, int arrayIndex)

Copies the elements of this collection to the specified array, starting at the specified array index.

Parameters:

ParameterTypeDescription
arrayjava.lang.Integer[]the specified one-dimensional array to copy elements to
arrayIndexintthe zero-based index of the specified array at which copying begins.

get(int index)

public Integer get(int index)

Parameters:

ParameterTypeDescription
indexint

Returns: java.lang.Integer

iterator()

public Iterator<Integer> iterator()

Returns: java.util.Iterator<java.lang.Integer>

remove(int index)

public Integer remove(int index)

Parameters:

ParameterTypeDescription
indexint

Returns: java.lang.Integer

set(int index, Integer dayType)

public Integer set(int index, Integer dayType)

Parameters:

ParameterTypeDescription
indexint
dayTypejava.lang.Integer

Returns: java.lang.Integer

size()

public final int size()

Returns: int