XpsArray
Inheritance: java.lang.Object, com.aspose.xps.XpsObject
public abstract class XpsArray<T> extends XpsObject
Class incapsulating common XPS model array object features.
Methods
Method | Description |
---|---|
add(T obj) | Adds a new object into array. |
equals(Object arg0) | |
get(int i) | Provides access to array’s element by index i . |
getClass() | |
hashCode() | |
insert(int index, T obj) | Inserts a new object into array at specified position. |
notify() | |
notifyAll() | |
remove(T obj) | Removes an object from array. |
removeAt(int index) | Removes an object from array at specified position. |
size() | Returns number of elements. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
add(T obj)
public T add(T obj)
Adds a new object into array.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | T | The object to add. |
Returns: T - Added object.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
get(int i)
public T get(int i)
Provides access to array’s element by index i .
Parameters:
Parameter | Type | Description |
---|---|---|
i | int | Index of the element. |
Returns: T - The element at i position.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
hashCode()
public native int hashCode()
Returns: int
insert(int index, T obj)
public T insert(int index, T obj)
Inserts a new object into array at specified position.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | The position to insert an object at. |
obj | T | The object to insert. |
Returns: T - Inserted object.
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
remove(T obj)
public T remove(T obj)
Removes an object from array.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | T | The object to remove. |
Returns: T - Removed object.
removeAt(int index)
public T removeAt(int index)
Removes an object from array at specified position.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | The position to remove an object at. |
Returns: T - Removed object.
size()
public int size()
Returns number of elements.
Returns: int - The number of elements.
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |