多多色-多人伦交性欧美在线观看-多人伦精品一区二区三区视频-多色视频-免费黄色视屏网站-免费黄色在线

國內(nèi)最全I(xiàn)T社區(qū)平臺(tái) 聯(lián)系我們 | 收藏本站
阿里云優(yōu)惠2
您當(dāng)前位置:首頁 > php開源 > php教程 > Java Notes-10

Java Notes-10

來源:程序員人生   發(fā)布時(shí)間:2015-05-08 07:48:40 閱讀次數(shù):3465次

Summay: The Map Interface, Collection implementations

-Maps store and retrieve elements with key values

e.g:

Map<String, Date> dateMap = new HashMap<String, Date>(); dateMap.put( "today", new Date() ); Date today = dateMap.get( "today" );

-Functions:

public V put( K key , V value )//This method adds the specified key/value pair to the map. public V get( K key )//This method retrieves the value corresponding to key from the map. public V remove( K key )//This method removes the value corresponding to key from the map public int size()//Use this method to find the number of key/value pairs in this map public Set keySet()//This method returns a Set that contains all the keys in this map. public Collection values()//Use this method to retrieve all the values in this map

-Map has one child interface,  SortedMap . A  SortedMap maintains its key/value pairs sorted
in a particular order according to the key values. 

-All of the methods of the  Collection interface would appear to make sense for  Map ,
except for  iterator() . A  Map , again, has two sets of objects: keys and values, and separate
iterators for each. This is why a  Map does not implement  Collection 

-ConcurrentMap, It extends the base  Map interface and adds atomic put, remove, and replace functionality that is
useful for concurrent programming

public V putIfAbsent( K key, V value )//This method associates the value with the key only if the key was not already in use. public boolean remove( Object key, Object value )//This method removes the mapping (key and value) only if the current value asso
生活不易,碼農(nóng)辛苦
如果您覺得本網(wǎng)站對您的學(xué)習(xí)有所幫助,可以手機(jī)掃描二維碼進(jìn)行捐贈(zèng)
程序員人生
------分隔線----------------------------
分享到:
------分隔線----------------------------
關(guān)閉
程序員人生
主站蜘蛛池模板: 毛片999| 国产一区二区三区四区 | 在线综合亚洲欧美网站天堂 | 亚洲精品www久久久久久 | 亚州 色 图 综合 | 欧美性视频在线 | 欧美片xxxx | 日本一区二区三区视频在线观看 | 国产精品9999久久久久 | 一本大道香蕉在线高清视频 | 全网毛片| 国产色视频一区二区三区 | 一级毛片在线免费视频 | 亚洲人成网站在线观看播放 | 日韩老女人| 国产尤物在线观看 | 91手机看片国产福利精品 | 最近新中文字幕大全高清 | 日本免费一区二区三区三州 | 欧美日韩国 | 老司机一二三区福利视频 | 亚洲天码中文字幕第一页 | 永久在线观看 | 伊人高清| 欧美特黄a级高清免费看片 欧美特黄一级aa毛片 | 亚洲精品αv一区二区三区 亚洲精品播放 | 亚洲伊人成综合人影院小说 | 欧美一级片黄色片 | 国产在线观看一区二区三区 | 2021精品国产综合久久 | 国产性夜夜春夜夜爽 | 中文字幕一二三区乱码 | 天天欧美| 国内精品视频在线观看 | 国产亚洲精品线观看77 | 国产精品美乳免费看 | 国产精品嫩草影院在线观看免费 | 中文字幕在线观看免费视频 | 毛片毛多 | 男女激情视频软件 | 国产精品免费久久久久影院小说 |