日本搞逼视频_黄色一级片免费在线观看_色99久久_性明星video另类hd_欧美77_综合在线视频

國內最全IT社區平臺 聯系我們 | 收藏本站
阿里云優惠2
您當前位置:首頁 > php開源 > php教程 > Java Notes-10

Java Notes-10

來源:程序員人生   發布時間:2015-05-08 07:48:40 閱讀次數:3468次

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
生活不易,碼農辛苦
如果您覺得本網站對您的學習有所幫助,可以手機掃描二維碼進行捐贈
程序員人生
------分隔線----------------------------
分享到:
------分隔線----------------------------
關閉
程序員人生
主站蜘蛛池模板: 国产最新av | 日韩精品免费在线观看 | 成人福利在线观看 | 国产精品久久精品 | 四季久久免费一区二区三区四区 | 国产视频久久久 | 欧美综合在线播放 | 精品久久久久久久久久中出 | 国产乱色国产精品播放视频 | 日韩天堂网 | 日韩久久久久久 | 二区欧美| 日本在线视频一区二区三区 | 精品视频在线观看 | 欧美日韩精品二区 | 激情av在线播放 | 亚洲在线电影 | 亚洲在线中文字幕 | 黄色在线免费 | av高清在线观看 | 播放日韩一级黄色片 | 一线毛片 | 国产色片在线观看 | 欧美激情精品久久久久久久久久 | 影视av久久久噜噜噜噜噜三级 | 国产区在线看 | 欧美日韩另类一区 | 日本三级中国三级99人妇网站 | 久久久精品国产 | 国产精品久久久久久久久免费相片 | 亚洲成人精品在线观看 | 欧美特级一级片 | 国产一区二区不卡 | 国产一区二区三区久久久久久久久 | 亚洲青青 | 成人午夜啪啪好大 | 亚洲一区二区视频 | 久久久久av | 亚洲91视频 | 欧美日韩一卡二卡 | 成人欧美一区二区三区黑人孕妇 |