📜  Java.util.Interfaces-教程点

📅  最后修改于: 2020-11-14 06:40:49             🧑  作者: Mango


介绍

java.util.Interfaces包含集合框架,旧式集合类,事件模型,日期和时间工具,国际化和其他实用程序类(字符串标记符,随机数生成器和位数组)。

界面摘要

Sr.No. Intreface & Description
1

Collection

This is the root interface in the collection hierarchy.

2

Comparator

This is a comparison function, which imposes a total ordering on some collection of objects.

3

Deque

This is a linear collection that supports element insertion and removal at both ends.

4

Enumeration

This is an object that implements the Enumeration interface generates a series of elements, one at a time.

5

EventListener

This is a tagging interface that all event listener interfaces must extend.

6

Formattable

This is the Formattable interface must be implemented by any class that needs to perform custom formatting using the ‘s’ conversion specifier of Formatter.

7

Iterator

This is an iterator over a collection.

8

List

This is an ordered collection (also known as a sequence).

9

ListIterator

This is 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.

10

Map

This is an object that maps keys to values.

11

Map.Entry

This is a map entry (key-value pair).

12

NavigableMap

This is a SortedMap extended with navigation methods returning the closest matches for given search targets.

13

NavigableSet

This is a SortedSet extended with navigation methods reporting closest matches for given search targets.

14

Observer

This is a class can implement the Observer interface when it wants to be informed of changes in observable objects.

15

Queue

This is a collection designed for holding elements prior to processing.

16

RandomAccess()

This is the Marker interface used by List implementations to indicate that they support fast (generally constant time) random access.

17

Set

This is a collection that contains no duplicate elements.

18

SortedMap

This is a Map that further provides a total ordering on its keys.

19

SortedSet

This is a Set that further provides a total ordering on its elements.