
**Inheritance:**
java.lang.Object, com.aspose.diagram.Collection
```
public class AnnotationCollection extends Collection<Annotation>
```

Annotation collection.
## Methods

| Method | Description |
| --- | --- |
| [add(T o)](#add-T-) |  |
| [add(Annotation item)](#add-com.aspose.diagram.Annotation-) | Add the Annotation object in the collection. |
| [clear()](#clear--) |  |
| [contains(Object o)](#contains-java.lang.Object-) |  |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [get(int index)](#get-int-) |  |
| [getClass()](#getClass--) |  |
| [getCount()](#getCount--) |  |
| [getInnerList()](#getInnerList--) |  |
| [hashCode()](#hashCode--) |  |
| [indexOf(Object o)](#indexOf-java.lang.Object-) |  |
| [isExist(int index)](#isExist-int-) |  |
| [iterator()](#iterator--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [remove(Annotation item)](#remove-com.aspose.diagram.Annotation-) | Remove the Annotation object from the collection. |
| [removeAt(int index)](#removeAt-int-) |  |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### add(T o) {#add-T-}
```
public int add(T o)
```




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

**Returns:**
int
### add(Annotation item) {#add-com.aspose.diagram.Annotation-}
```
public int add(Annotation item)
```


Add the Annotation object in the collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | [Annotation](../../com.aspose.diagram/annotation) |  |

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




### contains(Object o) {#contains-java.lang.Object-}
```
public boolean contains(Object o)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| o | java.lang.Object |  |

**Returns:**
boolean
### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### get(int index) {#get-int-}
```
public T get(int index)
```




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

**Returns:**
T
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getCount() {#getCount--}
```
public int getCount()
```




**Returns:**
int
### getInnerList() {#getInnerList--}
```
public ArrayList<T> getInnerList()
```




**Returns:**
java.util.ArrayList<T>
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### indexOf(Object o) {#indexOf-java.lang.Object-}
```
public int indexOf(Object o)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| o | java.lang.Object |  |

**Returns:**
int
### isExist(int index) {#isExist-int-}
```
public boolean isExist(int index)
```




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

**Returns:**
boolean
### iterator() {#iterator--}
```
public Iterator<T> iterator()
```




**Returns:**
java.util.Iterator<T>
### notify() {#notify--}
```
public final native void notify()
```




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




### remove(Annotation item) {#remove-com.aspose.diagram.Annotation-}
```
public void remove(Annotation item)
```


Remove the Annotation object from the collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | [Annotation](../../com.aspose.diagram/annotation) |  |

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




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

### 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 |  |

