- 博客(14)
- 资源 (1)
- 收藏
- 关注
原创 java.util.Stack类
/** * The <code>Stack</code> class represents a last-in-first-out * (LIFO) stack of objects. It extends class <tt>Vector</tt> with five * operations that allow a vector to be treated as a stack. The usual * <tt>push</tt
2020-10-19 11:25:40
169
原创 java.util.Queue接口
/** * A collection designed for holding elements prior to processing. * Besides basic {@link java.util.Collection Collection} operations, * queues provide additional insertion, extraction, and inspection * operations. Each of these methods exists in t
2020-10-19 11:16:33
168
原创 java.util.Deque接口
支持在两端插入和删除元素的线性集合。大多数Deque实现对它们可能包含的元素数量没有固定的限制, 但是此接口支持容量受限的双端队列以及没有固定大小限制的双端队列。 * A linear collection that supports element insertion and removal at * both ends. The name <i>deque</i> is short for "double ended queue" * and is usually p.
2020-10-19 10:19:54
192
原创 java.util.AbstractSequentialList抽象类
此类提供了List接口的基本实现,以最大程度地减少实现由“顺序访问”数据存储(例如链表)支持的该接口所需的工作。 对于随机访问数据(例如数组),应优先使用AbstractList来代替此类。 * This class provides a skeletal implementation of the <tt>List</tt> * interface to minimize the effort required to implement this interface *.
2020-06-09 17:32:29
166
原创 java.util.ListIterator接口
* An iterator for lists that allows the programmer * to traverse the list in either direction, modify * the list during iteration, and obtain the iterator's * current position in the list. A {@code ListIterator} * has no current element; its <I>.
2020-06-09 17:19:11
139
原创 java.util.ArrayDeque类
Deque接口的可调整大小的数组实现。 阵列双端队列没有容量限制。 它们会根据需要增长以支持使用。 它们不是线程安全的。 在没有外部同步的情况下,它们不支持多个线程的并发访问。 空元素是禁止的。 用作堆栈时,此类可能比Stack更快,而用作队列时,此类可能比LinkedList更快。 * Resizable-array implementation of the {@link Deque} interface. Array * deques have no capacity restrict.
2020-06-08 17:35:34
344
原创 java.util.ArrayList类
* Resizable-array implementation of the <tt>List</tt> interface. Implements * all optional list operations, and permits all elements, including * <tt>null</tt>. In addition to implementing the <tt>List</tt> interfac.
2020-06-08 14:54:31
2061
原创 java.util.AbstractList抽象类
List接口的骨架实现 * This class provides a skeletal implementation of the {@link List} * interface to minimize the effort required to implement this interface * backed by a "random access" data store (such as an array). For sequential * access data (such as.
2020-06-04 11:31:55
220
原创 java.util.List接口
有序,通过index查找 * An ordered collection (also known as a <i>sequence</i>). 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 .
2020-06-02 16:08:48
463
原创 java.util.AbstractCollection抽象类
package java.util;为Collection接口提供了一个骨骼框架最少只实现iterator和size即可/** * This class provides a skeletal implementation of the <tt>Collection</tt> * interface, to minimize the effort required to implement this interface. <p> * * To impleme
2020-06-02 15:27:36
257
原创 java.util.Collection接口
package java.util;import java.util.function.Predicate;import java.util.stream.Stream;import java.util.stream.StreamSupport;/** * The root interface in the <i>collection hierarchy</i>. A collection * represents a group of objects, known
2020-06-02 11:01:13
490
翻译 python 常用的匹配模式
\w 匹配字母数字及下划线\W 匹配f非字母数字下划线\s 匹配任意空白字符,等价于[\t\n\r\f]\S 匹配任意非空字符\d 匹配任意数字\D 匹配任意非数字\A 匹配字符串开始\Z 匹配字符串结束,如果存在换行,只匹配换行前的结束字符串\z 匹配字符串结束\G 匹配最后匹配...
2019-06-17 21:26:13
429
翻译 Python Requests内置的状态码查询对象
100: ('continue',),101: ('switching_protocols',),102: ('processing',),103: ('checkpoint',),122: ('uri_too_long', 'request_uri_too_long'),200: ('ok', 'okay', 'all_ok', 'all_okay', 'all_good', '\o/...
2019-06-17 20:57:19
899
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人