XpsArray

Inheritance: java.lang.Object, com.aspose.xps.XpsObject

public abstract class XpsArray<T> extends XpsObject

封装通用 XPS 模型数组对象特性的类。

方法

方法描述
add(T obj)向数组中添加新对象。
equals(Object arg0)
get(int i)提供通过索引 i 访问数组元素的方式。
getClass()
hashCode()
insert(int index, T obj)在指定位置向数组插入新对象。
notify()
notifyAll()
remove(T obj)从数组中移除对象。
removeAt(int index)在指定位置从数组中移除对象。
size()返回元素数量。
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

add(T obj)

public T add(T obj)

向数组中添加新对象。

Parameters:

参数类型描述
对象T要添加的对象。

Returns: T - 已添加的对象。

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

参数类型描述
arg0java.lang.Object

Returns: boolean

get(int i)

public T get(int i)

提供通过索引 i 访问数组元素的方式。

Parameters:

参数类型描述
iint元素的索引。

Returns: T - 位于 i 位置的元素。

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)

在指定位置向数组插入新对象。

Parameters:

参数类型描述
索引int要插入对象的位置。
对象T要插入的对象。

Returns: T - 已插入的对象。

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

remove(T obj)

public T remove(T obj)

从数组中移除对象。

Parameters:

参数类型描述
对象T要删除的对象。

Returns: T - 已删除的对象。

removeAt(int index)

public T removeAt(int index)

在指定位置从数组中移除对象。

Parameters:

参数类型描述
索引int要删除对象的位置。

Returns: T - 已删除的对象。

size()

public int size()

返回元素数量。

Returns: int - 元素的数量。

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

参数类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

参数类型描述
arg0long
arg1int