DateCollection

Inheritance: java.lang.Object, com.aspose.ms.System.Collections.ObjectModel.Collection

public class DateCollection extends System.Collections.ObjectModel.Collection<System.DateTime>

Represents a collection of java.util.Date values.


Methods

Method Description
getItem(int index) Gets or sets the ``` System.DateTime ``` at the specified index.
setItem(int index, Date value) Gets or sets the ``` System.DateTime ``` at the specified index.
add_Item(Date value) Adds the element to the end of exiting collection.
addRange(Iterable c) Adds the elements of an System.Collections.ICollection to the end of exiting collection.
addRange(System.Collections.ObjectModel.Collection c) Adds the elements of an System.Collections.ICollection to the end of exiting collection.
sort() Sorts the elements in the collection.
equals(DateCollection other) Determines whether the specified DateCollection is equal to this instance.
equals(Object obj) Determines whether the specified Object is equal to the current Object.
hashCode() GetHashCode returns a hash function for this object.

getItem(int index)

public Date getItem(int index)

Gets or sets the ``` System.DateTime ``` at the specified index.

Parameters:

Parameter Type Description
index int The zero-based index``` System.Int32 ``` of the element to get or set.

Returns: java.util.Date - The element``` System.DateTime ``` at the specified index.

setItem(int index, Date value)

public void setItem(int index, Date value)

Gets or sets the ``` System.DateTime ``` at the specified index.

Parameters:

Parameter Type Description
index int The zero-based index``` System.Int32 ``` of the element to get or set.
value java.util.Date The element``` Date ``` at the specified index.

add_Item(Date value)

public void add_Item(Date value)

Adds the element to the end of exiting collection.

Parameters:

Parameter Type Description
value java.util.Date The element``` Date ``` at the specified index.

addRange(Iterable c)

public void addRange(Iterable c)

Adds the elements of an System.Collections.ICollection to the end of exiting collection.

Parameters:

Parameter Type Description
c java.lang.Iterable The ICollection whose elements should be added to the end of this collection.

addRange(System.Collections.ObjectModel.Collection c)

public void addRange(System.Collections.ObjectModel.Collection c)

Adds the elements of an System.Collections.ICollection to the end of exiting collection.

Parameters:

Parameter Type Description
c com.aspose.ms.System.Collections.ObjectModel.Collection The ICollection whose elements should be added to the end of this collection.

sort()

public void sort()

Sorts the elements in the collection.

equals(DateCollection other)

public boolean equals(DateCollection other)

Determines whether the specified DateCollection is equal to this instance.

Parameters:

Parameter Type Description
other DateCollection The DateCollection to compare with this instance.

Returns: boolean - ``` true ``` if the specified DateCollection is equal to this instance; otherwise, ``` false ```.

equals(Object obj)

public boolean equals(Object obj)

Determines whether the specified Object is equal to the current Object.

Parameters:

Parameter Type Description
obj java.lang.Object The Object to compare with the current Object.

Returns: boolean - Returns a boolean indicating if the passed in object obj is Equal to this.

hashCode()

public int hashCode()

GetHashCode returns a hash function for this object.

Returns: int - Returns a hash function for this object.