网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > Java
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
网络编程:ASP教程,ASP.NET教程,PHP教程,JSP教程,C#教程,数据库,XML教程,Ajax,Java,Perl,Shell,VB教程,Delphi,C/C++教程,软件工程,J2EE/J2ME,移动开发
本月文章推荐
.水面的倒影源程序.
..net 的 MSMQ 异步调用全过程分析.
.创建通过 WDO访问数据的 JSF 应用.
.Java泛型编程快速入门.
.ChartDirector柱状图使用方法.
.Java应用数据库:Hibernate对多表.
.在 Java 程序设计中处理 DOM 异常.
.Webwork将加入Struts.
.Sun决定6月份发布为iPhone开发Ja.
.setHours 方法.
.java常见缩略词及英文对照.
.加法运算符 (+).
.构建器的调用顺序.
.如何使用Java编写多线程程序.
.开发框架--分析Tomcat下中文的彻.
.在Java中获取系统属性.
.Sun认证Java开发员(SCJD).
.JBuilder制作音频播放程序.
.怎样用Java实现MSN Messager的功.
.如何使用Java自带的正则表达式.

java.util.List翻译

发表日期:2008-1-5


 Overview Package  Class Use Tree Deprecated Index Help JavaTM 2 Platform
Std. Ed. v1.4.2
 PREV CLASS   NEXT CLASSFRAMES    NO FRAMES     All Classes SUMMARY: NESTED  FIELD  CONSTR  METHODDETAIL: FIELD  CONSTR  METHOD


java.util
Interface List

All Superinterfaces:
Collection
All Known Implementing Classes:
AbstractList, ArrayList, LinkedList, Vector

public interface List
extends Collection

An ordered collection (also known as a sequence). The user of this interface has precise control over where in the list each element is inserted. The user can Access elements by their integer index (position in the list), and search for elements in the list. 有序的集合(也被称为sequence)。该接口的用户可以精确控制列表元素插入的位置。 用户可以通过整数下标(列表中的位置)访问、查找列表中的元素。

Unlike sets, lists typically allow duplicate elements. More formally, lists typically allow pairs of elements e1 and e2 sUCh that e1.equals(e2), and they typically allow multiple null elements if they allow null elements at all. It is not inconceivable that someone might wish to implement a list that prohibits duplicates, by throwing runtime exceptions when the user attempts to insert them, but we eXPect this usage to be rare. 和set不同,列表通常答应重复元素。也就是说,列表通常答应e1.equals(e2)这样的 元素对e1和e2,假如答应null元素的话,通常也答应重复的null元素。 假如有人希望实现list而当用户试图插入重复元素时抛出运行时异常来禁止重复,这是不可思议的, 我们希望这样的用法极少。

The List interface places additional stipulations, beyond those specified in the Collection interface, on the contracts of the iterator, add, remove, equals, and hashCode methods. Declarations for other inherited methods are also included here for convenience. 对于iterator、add、remove、equals和hashCode方法,除了遵守Collection接口中指定的 以外,List接口还提供了额外的约定。按照惯例,还包括其他继续来的方法声明。

The List interface provides four methods for positional (indexed) access to list elements. Lists (like Java arrays) are zero based. Note that these operations may execute in time proportional to the index value for some implementations (the LinkedList class, for example). Thus, iterating over the elements in a list is typically preferable to indexing through it if the caller does not know the implementation. List接口提供了一些通过下标访问列表元素的四个可选方法。List和Java数组一样,是基于0的。 注重对于某些实现(比如LinkedList类)这些操作的执行时间和下标值成正比。 因此假如调用者不了解实现方式,通常应该遍历列表元素,这比指定下标位置更可取。


上一篇:绿色和本地线程简单介绍 人气:540
下一篇:在J2ME中实现欢迎界面(附源代码) 人气:910
浏览全部Java的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐