Foxit PDF SDK
com.foxit.sdk.common.fxcrt.Int32Array类 参考

有符号整数值数组。 更多...

类 com.foxit.sdk.common.fxcrt.Int32Array 继承关系图:
com.foxit.sdk.common.fxcrt.BasicArray

Public 成员函数

 Int32Array ()
 构造一个简单对象。
 
 Int32Array (Int32Array other)
 用另一个数组对象构造。 更多...
 
boolean add (int newElement)
 在尾部添加元素。可能会增长数组。 更多...
 
int find (int data, int iStart)
 从指定位置到最后查找元素。 更多...
 
int getAt (int nIndex)
 此方法检索由索引号指定的元素。 更多...
 
int getSize ()
 获取数组中元素的数量。 更多...
 
int getUpperBound ()
 获取数组中的上界,实际上是最大有效索引。 更多...
 
boolean insertAt (int nIndex, int newElement, int nCount)
 在指定位置插入一个或多个连续元素。 更多...
 
boolean insertAt (int nStartIndex, BasicArray pNewArray)
 在指定位置插入一个数组。 更多...
 
void removeAll ()
 清理数组。 更多...
 
boolean removeAt (int nIndex, int nCount)
 在指定位置移除若干元素。 更多...
 
boolean setAt (int nIndex, int newElement)
 此方法覆盖由索引号指定的元素。 更多...
 
boolean setAtGrow (int nIndex, int newElement)
 在指定位置设置元素值。可能会增长数组。 更多...
 
boolean setSize (int nNewSize, int nGrowBy)
 更改分配的大小和增长量。 更多...
 

详细描述

有符号整数值数组。

构造及析构函数说明

◆ Int32Array()

com.foxit.sdk.pdf.graphics.Int32Array.Int32Array ( Int32Array  other)

用另一个数组对象构造。

参数
[in]other另一个数组对象。

成员函数说明

◆ add()

boolean com.foxit.sdk.common.fxcrt.Int32Array.add ( int  newElement)

在尾部添加元素。可能会增长数组。

参数
[in]newElement输入的元素。
返回
true 表示成功,false 表示失败(如内存错误)。

◆ find()

int com.foxit.sdk.common.fxcrt.Int32Array.find ( int  data,
int  iStart 
)

从指定位置到最后查找元素。

参数
[in]data输入的元素。
[in]iStart指定开始查找的起始元素的基于零的索引。
返回
找到的元素的索引。-1表示未找到。

◆ getAt()

int com.foxit.sdk.common.fxcrt.Int32Array.getAt ( int  nIndex)

此方法检索由索引号指定的元素。

参数
[in]nIndex指定元素的基于零的索引。
返回
元素。

◆ getSize()

int com.foxit.sdk.common.fxcrt.Int32Array.getSize ( )

获取数组中元素的数量。

返回
数组中元素的数量。

◆ getUpperBound()

int com.foxit.sdk.common.fxcrt.Int32Array.getUpperBound ( )

获取数组中的上界,实际上是最大有效索引。

返回
上界。

◆ insertAt() [1/2]

bool com.foxit.sdk.common.fxcrt.Int32Array.insertAt ( int  nIndex,
int  newElement,
int  nCount 
)

在指定位置插入一个或多个连续元素。

参数
[in]nIndex指定数组中的起始索引(从零开始)。
[in]newElement指定要插入的元素值。
[in]nCount指定要插入的元素数量。
返回
true 表示成功,false 表示失败(如参数或内存错误)。

◆ insertAt() [2/2]

bool com.foxit.sdk.common.fxcrt.Int32Array.insertAt ( int  nStartIndex,
BasicArray  pNewArray 
)

在指定位置插入一个数组。

参数
[in]nStartIndex指定插入位置的起始索引(从零开始)。
[in]pNewArray输入的数组。
返回
true 表示成功,false 表示失败(如参数或内存错误)。

◆ removeAll()

void com.foxit.sdk.common.fxcrt.Int32Array.removeAll ( )

清理数组。

返回
无。

◆ removeAt()

boolean com.foxit.sdk.common.fxcrt.Int32Array.removeAt ( int  nIndex,
int  nCount 
)

在指定位置移除若干元素。

参数
[in]nIndex指定数组中的基于零的索引。
[in]nCount指定要移除的元素数量。
返回
true 表示成功,false 表示失败(如参数或内存错误)。

◆ setAt()

boolean com.foxit.sdk.common.fxcrt.Int32Array.setAt ( int  nIndex,
int  newElement 
)

此方法覆盖由索引号指定的元素。

参数
[in]nIndex指定元素的基于零的索引。
[in]newElement元素。
返回
true 表示成功,false 表示失败。

◆ setAtGrow()

boolean com.foxit.sdk.common.fxcrt.Int32Array.setAtGrow ( int  nIndex,
int  newElement 
)

在指定位置设置元素值。可能会增长数组。

参数
[in]nIndex指定数组中元素的基于零的索引。
[in]newElement输入的元素。
返回
true 表示成功,false 表示失败。

◆ setSize()

boolean com.foxit.sdk.common.fxcrt.Int32Array.setSize ( int  nNewSize,
int  nGrowBy 
)

更改分配的大小和增长量。

参数
[in]nNewSize期望的新大小(以元素为单位)。
[in]nGrowBy期望的增长量(以元素为单位)。这可以为-1表示增长量不变。
返回
true 表示成功,false 表示失败(如参数或内存错误)。