【Android API】java.util.List<E>
来源:互联网 发布:淘宝运营专才 试题 编辑:程序博客网 时间:2024/04/27 09:53
java.util.List<E>
属于公共接口,因此List<String> list = new List<String>();是无法实例化的。
已知间接子类:
AbstractList <E>, AbstractSequentialList <E>, ArrayList <E>, CopyOnWriteArrayList <E>, LinkedList <E>, Stack <E>, Vector <E> 可以通过这些类来实例化。比如:
List<String> list = new ArrayList<String>();
List<String> list = new ArrayList<String>();
Adds the specified object at the end of this
List
.Inserts the specified object into this
List
at the specified location.Adds the objects in the specified collection to the end of this
List
.Inserts the objects in the specified collection at the specified location in this
List
.Removes all elements from this
List
, leaving it empty.Tests whether this
List
contains the specified object.Tests whether this
List
contains all objects contained in the specified collection.Compares the given object with the
List
, and returns true if they represent the same object using a class specific comparison.Returns the element at the specified location in this
List
.Returns the hash code for this
List
.Searches this
List
for the specified object and returns the index of the first occurrence.Returns whether this
List
contains no elements.Returns an iterator on the elements of this
List
.Searches this
List
for the specified object and returns the index of the last occurrence.Returns a list iterator on the elements of this
List
.Returns a
List
iterator on the elements of this List
.Removes the object at the specified location from this
List
.Removes the first occurrence of the specified object from this
List
.Removes all occurrences in this
List
of each object in the specified collection.Removes all objects from this
List
that are not contained in the specified collection.Replaces the element at the specified location in this
List
with the specified object.Returns the number of elements in this
List
.Returns a
List
of the specified portion of this List
from the given start index to the end index minus one.Returns an array containing all elements contained in this
List
.Returns an array containing all elements contained in this
List
. 0 0
- 【Android API】java.util.List<E>
- 1. java.util.List 与 2.java.util.ArrayList<E>
- java.util.ArrayList<E>
- java.util.ListIterator<E>
- java.util.AbstractSequentialList<E>
- java.util.Set<E>
- java.util.List翻译
- java.util.List学习
- java.util.list操作
- java.util.List
- java.util.List学习
- java.util.List.subList
- java.util.List.subList
- List java.util.ConcurrentModificationException
- java.util.List
- java.util.List.subList
- java.util.ListIterator<E> java.util.Iterator<E> 的异同
- java.util类Vector<E>
- 有关协议的用法
- linux内核--段页式管理内存的方法
- 比较 SLF4J 与 log4j
- c++程序设计原理与实践--读书笔记
- 类似天猫那样的侧边导航栏的快速实现
- 【Android API】java.util.List<E>
- 就地交换两个数
- mysql获取汉字拼音
- JDBC链接MySQL的源码
- 寒假14项目1——动态数组体验(修改3)
- oracle获取汉字拼音
- 分支-13. 计算天数(15)
- jca分析java dump日志
- 如何让你的Android SDK下载或者升级快如闪电