
**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 |
| --- | --- |
| [addItem(T arg0)](#addItem-T-) |  |
| [addRange(System.Collections.ObjectModel.Collection c)](#addRange-com.aspose.ms.System.Collections.ObjectModel.Collection-) | Adds the elements of an System.Collections.ICollection to the end of exiting collection. |
| [addRange(Iterable c)](#addRange-java.lang.Iterable-) | Adds the elements of an System.Collections.ICollection to the end of exiting collection. |
| [add_Item(Date value)](#add-Item-java.util.Date-) | Adds the element to the end of exiting collection. |
| [clear()](#clear--) |  |
| [containsItem(T arg0)](#containsItem-T-) |  |
| [copyToTArray(T[] arg0, int arg1)](#copyToTArray-T---int-) |  |
| [equals(DateCollection other)](#equals-com.aspose.email.DateCollection-) | Determines whether the specified [DateCollection](../../com.aspose.email/datecollection) is equal to this instance. |
| [equals(Object obj)](#equals-java.lang.Object-) | Determines whether the specified Object is equal to the current Object. |
| [getClass()](#getClass--) |  |
| [getICollection()](#getICollection--) |  |
| [getIList()](#getIList--) |  |
| [getItem(int index)](#getItem-int-) | Gets or sets the  System.DateTime  at the specified index. |
| [getSyncRoot()](#getSyncRoot--) |  |
| [get_Item(int arg0)](#get-Item-int-) |  |
| [hashCode()](#hashCode--) | GetHashCode returns a hash function for this object. |
| [indexOfItem(T arg0)](#indexOfItem-T-) |  |
| [insertItem(int arg0, T arg1)](#insertItem-int-T-) |  |
| [isReadOnly()](#isReadOnly--) |  |
| [iterator()](#iterator--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [removeAt(int arg0)](#removeAt-int-) |  |
| [removeItem(T arg0)](#removeItem-T-) |  |
| [setItem(int index, Date value)](#setItem-int-java.util.Date-) | Gets or sets the  System.DateTime  at the specified index. |
| [set_Item(int arg0, T arg1)](#set-Item-int-T-) |  |
| [size()](#size--) |  |
| [sort()](#sort--) | Sorts the elements in the collection. |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### addItem(T arg0) {#addItem-T-}
```
public void addItem(T arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T |  |

### addRange(System.Collections.ObjectModel.Collection c) {#addRange-com.aspose.ms.System.Collections.ObjectModel.Collection-}
```
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. |

### addRange(Iterable c) {#addRange-java.lang.Iterable-}
```
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. |

### add_Item(Date value) {#add-Item-java.util.Date-}
```
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. |

### clear() {#clear--}
```
public void clear()
```




### containsItem(T arg0) {#containsItem-T-}
```
public boolean containsItem(T arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T |  |

**Returns:**
boolean
### copyToTArray(T[] arg0, int arg1) {#copyToTArray-T---int-}
```
public void copyToTArray(T[] arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T[] |  |
| arg1 | int |  |

### equals(DateCollection other) {#equals-com.aspose.email.DateCollection-}
```
public boolean equals(DateCollection other)
```


Determines whether the specified [DateCollection](../../com.aspose.email/datecollection) is equal to this instance.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| other | [DateCollection](../../com.aspose.email/datecollection) | The [DateCollection](../../com.aspose.email/datecollection) to compare with this instance. |

**Returns:**
boolean -  true  if the specified [DateCollection](../../com.aspose.email/datecollection) is equal to this instance; otherwise,  false .
### equals(Object obj) {#equals-java.lang.Object-}
```
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.
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getICollection() {#getICollection--}
```
public System.Collections.ICollection getICollection()
```




**Returns:**
com.aspose.ms.System.Collections.ICollection
### getIList() {#getIList--}
```
public System.Collections.IList getIList()
```




**Returns:**
com.aspose.ms.System.Collections.IList
### getItem(int index) {#getItem-int-}
```
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.
### getSyncRoot() {#getSyncRoot--}
```
public Object getSyncRoot()
```




**Returns:**
java.lang.Object
### get_Item(int arg0) {#get-Item-int-}
```
public T get_Item(int arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | int |  |

**Returns:**
T
### hashCode() {#hashCode--}
```
public int hashCode()
```


GetHashCode returns a hash function for this object.

**Returns:**
int - Returns a hash function for this object.
### indexOfItem(T arg0) {#indexOfItem-T-}
```
public int indexOfItem(T arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T |  |

**Returns:**
int
### insertItem(int arg0, T arg1) {#insertItem-int-T-}
```
public void insertItem(int arg0, T arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | int |  |
| arg1 | T |  |

### isReadOnly() {#isReadOnly--}
```
public boolean isReadOnly()
```




**Returns:**
boolean
### iterator() {#iterator--}
```
public System.Collections.Generic.IGenericEnumerator<T> iterator()
```




**Returns:**
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<T>
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### removeAt(int arg0) {#removeAt-int-}
```
public void removeAt(int arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | int |  |

### removeItem(T arg0) {#removeItem-T-}
```
public boolean removeItem(T arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T |  |

**Returns:**
boolean
### setItem(int index, Date value) {#setItem-int-java.util.Date-}
```
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. |

### set_Item(int arg0, T arg1) {#set-Item-int-T-}
```
public void set_Item(int arg0, T arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | int |  |
| arg1 | T |  |

### size() {#size--}
```
public int size()
```




**Returns:**
int
### sort() {#sort--}
```
public void sort()
```


Sorts the elements in the collection.

### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final native void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

