存儲一個key,value的鍵值對的集合 內(nèi)部有三個成員集合 private transient SetkeySet; private tran...
定義優(yōu)先級隊列,實現(xiàn)了AbstractQueue 優(yōu)先隊列跟普通的隊列不一樣,普通隊列是一種遵循FIFO規(guī)則的隊列,拿數(shù)據(jù)的時候按照加入隊列的順...
ArrayDeque和LinkedList都實現(xiàn)了Deque雙端隊,從兩端取值/添加/刪除. ArrayDeque,內(nèi)部有3個成員,object...
Deque interface Dequeextends Queue 定義:雙端隊列,double end queue,有兩個端頭的隊列,繼承了...
Queue隊列繼承了Collection接口,并擴展了隊列相關(guān)方法 添加到隊尾,取/刪除從對頭。 boolean add(E e); 復寫,在隊...
hashcode的定義 hashCode是jdk根據(jù)對象的地址或者字符串或者數(shù)字算出來的int類型的數(shù)值 public inthashCode(...
ArrayList繼承接口List,一個定長的List,可以動態(tài)的增長和縮減 內(nèi)部有一個成員object數(shù)組,可以實現(xiàn)index索引,Objec...
定義:A set is a data structure which does not allow duplicate elements. Se...
它繼承了Collection接口并且擴展了基于下標的隨機訪問的方法 基于下標的添加 public void add(int index,E ob...