The data displayed is typically kept in an ArrayList reference.
显示的数据通常保存在一个ArrayList引用中。
Some Web services engines may not provide support for ArrayList.
有些Web服务引擎可能没有为arraylist提供支持。
When a dynamic length of an array is needed, think ArrayList.
当需要动态长度的数组时,请考虑ArrayList。
Remember that this input should be the ArrayList of your data model.
记住,此输入必须是数据模型的ArrayList。
Data is added in the Action class by making state and status of type arraylist.
通过将state和status设置为arraylist类型将数据添加到action类。
As you add elements, the capacity of the ArrayList object expands automatically.
在添加元素时,ArrayList对象的容量将自动扩展。
This includes operations on types like List or ArrayList without a type specified.
这种操作包括诸如list或arraylist等类型上的操作,但没有指定类型。
For example, we create the ArrayList first and add three book instances to it.
例如,先创建ArrayList并向其中添加三个书实例。
I start by creating a list of all the factors as a dynamic list (an ArrayList).
首先把所有因子创建为一张动态列表(ArrayList)。
Method addWsdlSchemas generates the schemas, validate them and add them into a arraylist.
addWsdlSchemas 方法生成模式,并对其进行验证,然后将其添加到数组列表中。
ArrayList: the list of PPListElement objects containing the new project dependencies.
包含新项目依赖关系的PPListElement对象的列表。
Similarly, it returns an ArrayList because that is the third type parameter of the AsyncTask.
类似地,它返回一个ArrayList,因为这是AsyncTask的第三个类型参数。
ArrayList: the list of PPListElement objects containing the existing project dependencies.
包含现有项目依赖关系的PPListElement对象的列表。
It does this by reordering the arrayList in the root bean for whatever column needs to be sorted.
无论哪一列需要排序,都可以通过对根bean中的arrayList进行重新排序来实现。
When an instance of the ArrayList class is created, it takes a small subtree of the template tree.
当一个动态数组的实例被创建的时候,它会抓住模板树的一个子树。
In this example, the DisplayAction class sets the ArrayList object's state and status with a few values.
本例中,displayaction类用几个值来设置arraylist对象的state和status。
Listing 5 shows code that receives the incoming data and pushes it into an object of the ArrayList class.
清单5展示的代码将接收传入的数据并将数据推入到arraylist类的对象中。
The Listing 8 template illustrates the use of the #foreach directive with our $treeList ArrayList variable.
清单8 中的模板通过 $treeListArrayList变量演示了 #foreach指示符的用法。
The tripList element is an ArrayList of Trip objects pulled from the database by the Trip.list() method.
tripList元素是Trip对象的一个 ArrayList,Trip 对象是通过Trip.list()方法从数据库中拉出的。
Because ArrayList isn't a final class, another option would be simply to have FixedList extend ArrayList.
由于ArrayList并不是final类,另一个选择就是让FixedList扩展ArrayList。
The sample program creates both a CopyOnWriteArrayList and ArrayList instance from the command line arguments.
这个示例程序用命令行参数创建CopyOnWriteArrayList和ArrayList这两个实例。
Repeated querys to a db with JDBC or dump data to ArrayList and iterate over list whenever I want some data?
重复查询数据库和JDBC或转储数据数组列表和遍历列表每当我想要一些数据吗?。
When defined, an object of ArrayList has a specific capacity that always matches the size of the underlying list.
完成类定义之后,ArrayList具有一个特定的容量,总是匹配底层列表的大小。
The ArrayList of Products has been translated into a sequence of anonymous elements in the XML Schema definition.
Products的ArrayList已经被翻译成了XMLSche ma定义中的匿名元素序列。
In lines 25-28, you convert the result returned by the service into an ArrayList that the type-ahead component understands.
25 - 28行,将由服务器返回的结果变换为预输入组件可以理解的ArrayList类型。
This puts the cost structure backward for scenarios where numerous readers are reading the ArrayList but few are modifying it.
这又让成本结构回到这样一个场景:需多读者都在读取arraylist,但是几乎没人会去修改它。
Accordingly, I can create an ArrayList for the Stack class that holds values passed into the push method, as shown in Listing 9.
相应地,我可以为stack类创建一个ArrayList,用于保持传递给push方法的值,如清单9所示。
A close reading of the information in Listing 17 uncovers the issue: I need to account for 0 when dealing with an ArrayList.
仔细阅读清单17中的实现可以发现问题:在处理ArrayList时,我需要考虑0。
You've heard again and again that ArrayList is more efficient than Vector if you don't have synchronization as a consideration.
您已经反复听说过,如果不考虑同步,则arraylist比vector更有效。
To summarize: use the enhanced for loop by default, but consider a hand-written counted loop for performance-critical ArrayList iteration.
结论:优先采用改进for循环,但在性能要求苛刻的ArrayList迭代中,考虑采用手写计数循环。
应用推荐