T
- The type of array elements.public abstract class XpsArray<T extends XpsObject> extends XpsObject
Class incapsulating common XPS model array object features.
Modifier and Type | Method and Description |
---|---|
T |
add(T obj)
Adds a new object into array.
|
T |
get(int i)
Provides access to array's element by index
i . |
T |
insert(int index,
T obj)
Inserts a new object into array at specified position.
|
T |
remove(T obj)
Removes an object from array.
|
T |
removeAt(int index)
Removes an object from array at specified position.
|
int |
size()
Returns number of elements.
|
public T add(T obj)
Adds a new object into array.
obj
- The object to add.public T remove(T obj)
Removes an object from array.
obj
- The object to remove.public T insert(int index, T obj)
Inserts a new object into array at specified position.
index
- The position to insert an object at.obj
- The object to insert.public T removeAt(int index)
Removes an object from array at specified position.
index
- The position to remove an object at.public T get(int i)
Provides access to array's element by index i
.
i
- Index of the element.i
position.public int size()
Returns number of elements.
Copyright © 2021 Aspose. All Rights Reserved.